;d3d10.h, dxgi.h, dxgitype.h, dxgiformat.h, d3d10sdklayers.h, d3d10misc.h, d3d10shader.h
;d3d10effect.h, d3d10_1.h, d3d10_1Shader.h

;GUID_DeviceType GUID $d722fb4d,$7a68,$437a,$b2,$0c,$58,$04,$ee,$24,$94,$a6>
;IID_IDXGIObject GUID $aec22fb8,$76f3,$4639,<$9b,$e0,$28,$eb,$43,$a6,$7a,$2e>
;IID_IDXGIDeviceSubObject GUID $3d3e0379,$f9de,$4d58,<$bb,$6c,$18,$d6,$29,$92,$f1,$a6>
;IID_IDXGIResource GUID $035f3ab4,$482e,$4e50,<$b4,$1f,$8a,$7f,$8b,$d8,$96,$0b>
;IID_IDXGIKeyedMutex GUID $9d8e1289,$d7b3,$465f,<$81,$26,$25,$0e,$34,$9a,$f8,$5d>
;IID_IDXGISurface GUID $cafcb56c,$6ac3,$4889,<$bf,$47,$9e,$23,$bb,$d2,$60,$ec>
;IID_IDXGISurface1 GUID $4AE63092,$6327,$4c1b,<$80,$AE,$BF,$E1,$2E,$A3,$2B,$86>
;IID_IDXGIAdapter GUID $2411e7e1,$12ac,$4ccf,<$bd,$14,$97,$98,$e8,$53,$4d,$c0>
;IID_IDXGIOutput GUID $ae02eedb,$c735,$4690,<$8d,$52,$5a,$8d,$c2,$02,$13,$aa>
;IID_IDXGISwapChain GUID $310d36a0,$d2e7,$4c0a,<$aa,$04,$6a,$9d,$23,$b8,$88,$6a>
;IID_IDXGIFactory GUID $7b7166ec,$21c7,$44ae,<$b2,$1a,$c9,$ae,$32,$1a,$e3,$69>
;IID_IDXGIDevice GUID $54ec77fa,$1377,$44e6,<$8c,$32,$88,$fd,$5f,$44,$c8,$4c>
;IID_IDXGIFactory1 GUID $770aae78,$f26f,$4dba,<$a8,$29,$25,$3c,$83,$d1,$b3,$87>
;IID_IDXGIAdapter1 GUID $29038f61,$3839,$4626,<$91,$fd,$08,$68,$79,$01,$1a,$05>
;IID_IDXGIDevice1 GUID $77db970f,$6276,$48ba,<$ba,$28,$07,$01,$43,$b4,$39,$2c>
;IID_ID3D10DeviceChild GUID $9B7E4C00,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10DepthStencilState GUID $2B4B1CC8,$A4AD,$41f8,<$83,$22,$CA,$86,$FC,$3E,$C6,$75>
;IID_ID3D10BlendState GUID $EDAD8D19,$8A35,$4d6d,<$85,$66,$2E,$A2,$76,$CD,$E1,$61>
;IID_ID3D10RasterizerState GUID $A2A07292,$89AF,$4345,<$BE,$2E,$C5,$3D,$9F,$BB,$6E,$9F>
;IID_ID3D10Resource GUID $9B7E4C01,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Buffer GUID $9B7E4C02,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Texture1D GUID $9B7E4C03,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Texture2D GUID $9B7E4C04,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Texture3D GUID $9B7E4C05,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10View GUID $C902B03F,$60A7,$49BA,<$99,$36,$2A,$3A,$B3,$7A,$7E,$33>
;IID_ID3D10ShaderResourceView GUID $9B7E4C07,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10RenderTargetView GUID $9B7E4C08,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10DepthStencilView GUID $9B7E4C09,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10VertexShader GUID $9B7E4C0A,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10GeometryShader GUID $6316BE88,$54CD,$4040,<$AB,$44,$20,$46,$1B,$C8,$1F,$68>
;IID_ID3D10PixelShader GUID $4968B601,$9D00,$4cde,<$83,$46,$8E,$7F,$67,$58,$19,$B6>
;IID_ID3D10InputLayout GUID $9B7E4C0B,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10SamplerState GUID $9B7E4C0C,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Asynchronous GUID $9B7E4C0D,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Query GUID $9B7E4C0E,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Predicate GUID $9B7E4C10,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Counter GUID $9B7E4C11,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Device GUID $9B7E4C0F,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Multithread GUID $9B7E4E00,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10Debug GUID $9B7E4E01,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10SwitchToRef GUID $9B7E4E02,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10InfoQueue GUID $1b940b17,$2642,$4d1f,<$ab,$1f,$b9,$9b,$ad,$0c,$39,$5f>
;IID_ID3D10Debug GUID $9B7E4E01,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10SwitchToRef GUID $9B7E4E02,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
;IID_ID3D10InfoQueue GUID $1b940b17,$2642,$4d1f,<$ab,$1f,$b9,$9b,$ad,$0c,$39,$5f>
;IID_ID3D10Blob GUID $8ba5fb08,$5195,$40e2,$ac,$58,$d,$98,$9c,$3a,$1,$2>
;IID_ID3D10ShaderReflectionType GUID $c530ad7d,$9b16,$4395,<$a9,$79,$ba,$2e,$cf,$f8,$3a,$dd>
;IID_ID3D10ShaderReflectionVariable GUID $1bf63c95,$2650,$405d,<$99,$c1,$36,$36,$bd,$1d,$a0,$a1>
;IID_ID3D10ShaderReflectionConstantBuffer GUID $66c66a94,$dddd,$4b62,<$a6,$6a,$f0,$da,$33,$c2,$b4,$d0>
;IID_ID3D10ShaderReflection GUID $d40e20b6,$f8f7,$42ad,<$ab,$20,$4b,$af,$8f,$15,$df,$aa>
;IID_ID3D10StateBlock GUID $803425a,$57f5,$4dd6,<$94,$65,$a8,$75,$70,$83,$4a,8>
;IID_ID3D10EffectType GUID $4e9e1ddc,$cd9d,$4772,<$a8,$37,0,$18,$b,$9b,$88,$fd>
;IID_ID3D10EffectVariable GUID $ae897105,$e6,$45bf,<$bb,$8e,$28,$1d,$d6,$db,$8e,$1b>
;IID_ID3D10EffectScalarVariable GUID $e48f7b,$d2c8,$49e8,<$a8,$6c,2,$2d,$ee,$53,$43,$1f>
;IID_ID3D10EffectVectorVariable GUID $62b98c44,$1f82,$4c67,<$bc,$d0,$72,$cf,$8f,$21,$7e,$81>
;IID_ID3D10EffectMatrixVariable GUID $50666c24,$b82f,$4eed,<$a1,$72,$5b,$6e,$7e,$85,$22,$e0>
;IID_ID3D10EffectStringVariable GUID $71417501,$8df9,$4e0a,<$a7,$8a,$25,$5f,$97,$56,$ba,$ff>
;IID_ID3D10EffectShaderResourceVariable GUID $c0a7157b,$d872,$4b1d,<$80,$73,$ef,$c2,$ac,$d4,$b1,$fc>
;IID_ID3D10EffectRenderTargetViewVariable GUID $28ca0cc3,$c2c9,$40bb,<$b5,$7f,$67,$b7,$37,$12,$2b,$17>
;IID_ID3D10EffectDepthStencilViewVariable GUID $3e02c918,$cc79,$4985,<$b6,$22,$2d,$92,$ad,$70,$16,$23>
;IID_ID3D10EffectConstantBuffer GUID $56648f4d,$cc8b,$4444,<$a5,$ad,$b5,$a3,$d7,$6e,$91,$b3>
;IID_ID3D10EffectShaderVariable GUID $80849279,$c799,$4797,<$8c,$33,4,7,$a0,$7d,$9e,6>
;IID_ID3D10EffectBlendVariable GUID $1fcd2294,$df6d,$4eae,<$86,$b3,$e,$91,$60,$cf,$b0,$7b>
;IID_ID3D10EffectDepthStencilVariable GUID $af482368,$330a,$46a5,<$9a,$5c,1,$c7,$1a,$f2,$4c,$8d>
;IID_ID3D10EffectRasterizerVariable GUID $21af9f0e,$4d94,$4ea9,<$97,$85,$2c,$b7,$6b,$8c,$b,$34>
;IID_ID3D10EffectSamplerVariable GUID $6530d5c7,$7e9,$4271,<$a4,$18,$e7,$ce,$4b,$d1,$e4,$80>
;IID_ID3D10EffectPass GUID $5cfbeb89,$1a06,$46e0,<$b2,$82,$e3,$f9,$bf,$a3,$6a,$54>
;IID_ID3D10EffectTechnique GUID $db122ce8,$d1c9,$4292,<$b2,$37,$24,$ed,$3d,$e8,$b1,$75>
;IID_ID3D10Effect GUID $51b0ca8b,$ec0b,$4519,<$87,$d,$8e,$e1,$cb,$50,$17,$c7>
;IID_ID3D10EffectPool GUID $9537ab04,$3250,$412e,<$82,$13,$fc,$d2,$f8,$67,$79,$33>

D3D10_SDK_VERSION = 29
D3D10_OK = S_OK

DXGI_FORMAT_DEFINED = 1

DXGI_FORMAT_UNKNOWN = 0
DXGI_FORMAT_R32G32B32A32_TYPELESS = 1
DXGI_FORMAT_R32G32B32A32_FLOAT = 2
DXGI_FORMAT_R32G32B32A32_UINT = 3
DXGI_FORMAT_R32G32B32A32_SINT = 4
DXGI_FORMAT_R32G32B32_TYPELESS = 5
DXGI_FORMAT_R32G32B32_FLOAT = 6
DXGI_FORMAT_R32G32B32_UINT = 7
DXGI_FORMAT_R32G32B32_SINT = 8
DXGI_FORMAT_R16G16B16A16_TYPELESS = 9
DXGI_FORMAT_R16G16B16A16_FLOAT = 10
DXGI_FORMAT_R16G16B16A16_UNORM = 11
DXGI_FORMAT_R16G16B16A16_UINT  = 12
DXGI_FORMAT_R16G16B16A16_SNORM = 13
DXGI_FORMAT_R16G16B16A16_SINT = 14
DXGI_FORMAT_R32G32_TYPELESS = 15
DXGI_FORMAT_R32G32_FLOAT = 16
DXGI_FORMAT_R32G32_UINT = 17
DXGI_FORMAT_R32G32_SINT = 18
DXGI_FORMAT_R32G8X24_TYPELESS = 19
DXGI_FORMAT_D32_FLOAT_S8X24_UINT  = 20
DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS = 21
DXGI_FORMAT_X32_TYPELESS_G8X24_UINT = 22
DXGI_FORMAT_R10G10B10A2_TYPELESS = 23
DXGI_FORMAT_R10G10B10A2_UNORM = 24
DXGI_FORMAT_R10G10B10A2_UINT = 25
DXGI_FORMAT_R11G11B10_FLOAT = 26
DXGI_FORMAT_R8G8B8A8_TYPELESS = 27
DXGI_FORMAT_R8G8B8A8_UNORM = 28
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB = 29
DXGI_FORMAT_R8G8B8A8_UINT = 30
DXGI_FORMAT_R8G8B8A8_SNORM = 31
DXGI_FORMAT_R8G8B8A8_SINT = 32
DXGI_FORMAT_R16G16_TYPELESS = 33
DXGI_FORMAT_R16G16_FLOAT = 34
DXGI_FORMAT_R16G16_UNORM = 35
DXGI_FORMAT_R16G16_UINT = 36
DXGI_FORMAT_R16G16_SNORM = 37
DXGI_FORMAT_R16G16_SINT = 38
DXGI_FORMAT_R32_TYPELESS = 39
DXGI_FORMAT_D32_FLOAT = 40
DXGI_FORMAT_R32_FLOAT = 41
DXGI_FORMAT_R32_UINT = 42
DXGI_FORMAT_R32_SINT = 43
DXGI_FORMAT_R24G8_TYPELESS = 44
DXGI_FORMAT_D24_UNORM_S8_UINT = 45
DXGI_FORMAT_R24_UNORM_X8_TYPELESS = 46
DXGI_FORMAT_X24_TYPELESS_G8_UINT = 47
DXGI_FORMAT_R8G8_TYPELESS = 48
DXGI_FORMAT_R8G8_UNORM = 49
DXGI_FORMAT_R8G8_UINT = 50
DXGI_FORMAT_R8G8_SNORM = 51
DXGI_FORMAT_R8G8_SINT = 52
DXGI_FORMAT_R16_TYPELESS = 53
DXGI_FORMAT_R16_FLOAT = 54
DXGI_FORMAT_D16_UNORM = 55
DXGI_FORMAT_R16_UNORM = 56
DXGI_FORMAT_R16_UINT = 57
DXGI_FORMAT_R16_SNORM = 58
DXGI_FORMAT_R16_SINT = 59
DXGI_FORMAT_R8_TYPELESS = 60
DXGI_FORMAT_R8_UNORM = 61
DXGI_FORMAT_R8_UINT = 62
DXGI_FORMAT_R8_SNORM = 63
DXGI_FORMAT_R8_SINT = 64
DXGI_FORMAT_A8_UNORM = 65
DXGI_FORMAT_R1_UNORM = 66
DXGI_FORMAT_R9G9B9E5_SHAREDEXP = 67
DXGI_FORMAT_R8G8_B8G8_UNORM = 68
DXGI_FORMAT_G8R8_G8B8_UNORM = 69
DXGI_FORMAT_BC1_TYPELESS = 70
DXGI_FORMAT_BC1_UNORM = 71
DXGI_FORMAT_BC1_UNORM_SRGB = 72
DXGI_FORMAT_BC2_TYPELESS = 73
DXGI_FORMAT_BC2_UNORM = 74
DXGI_FORMAT_BC2_UNORM_SRGB = 75
DXGI_FORMAT_BC3_TYPELESS = 76
DXGI_FORMAT_BC3_UNORM = 77
DXGI_FORMAT_BC3_UNORM_SRGB = 78
DXGI_FORMAT_BC4_TYPELESS = 79
DXGI_FORMAT_BC4_UNORM = 80
DXGI_FORMAT_BC4_SNORM = 81
DXGI_FORMAT_BC5_TYPELESS = 82
DXGI_FORMAT_BC5_UNORM = 83
DXGI_FORMAT_BC5_SNORM = 84
DXGI_FORMAT_B5G6R5_UNORM = 85
DXGI_FORMAT_B5G5R5A1_UNORM = 86
DXGI_FORMAT_B8G8R8A8_UNORM = 87
DXGI_FORMAT_B8G8R8X8_UNORM = 88
DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = 89
DXGI_FORMAT_B8G8R8A8_TYPELESS = 90
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = 91
DXGI_FORMAT_B8G8R8X8_TYPELESS = 92
DXGI_FORMAT_B8G8R8X8_UNORM_SRGB = 93
DXGI_FORMAT_BC6H_TYPELESS = 94
DXGI_FORMAT_BC6H_UF16 = 95
DXGI_FORMAT_BC6H_SF16 = 96
DXGI_FORMAT_BC7_TYPELESS  = 97
DXGI_FORMAT_BC7_UNORM = 98
DXGI_FORMAT_BC7_UNORM_SRGB = 99
DXGI_FORMAT_FORCE_UINT = $ffffffff

DXGI_STATUS_OCCLUDED = $087a0001
DXGI_STATUS_CLIPPED = $087a0002
DXGI_STATUS_NO_REDIRECTION = $087a0004
DXGI_STATUS_NO_DESKTOP_ACCESS = $087a0005
DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE = $087a0006
DXGI_STATUS_MODE_CHANGED = $087a0007
DXGI_STATUS_MODE_CHANGE_IN_PROGRESS = $087a0008

DXGI_ERROR_INVALID_CALL = $887a0001
DXGI_ERROR_NOT_FOUND = $887a0002
DXGI_ERROR_MORE_DATA = $887a0003
DXGI_ERROR_UNSUPPORTED = $887a0004
DXGI_ERROR_DEVICE_REMOVED = $887a0005
DXGI_ERROR_DEVICE_HUNG = $887a0006
DXGI_ERROR_DEVICE_RESET = $887a0007
DXGI_ERROR_WAS_STILL_DRAWING = $887a000a
DXGI_ERROR_FRAME_STATISTICS_DISJOINT = $887a000b
DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE = $887a000c
DXGI_ERROR_DRIVER_INTERNAL_ERROR = $887a0020
DXGI_ERROR_NONEXCLUSIVE = $887a0021
DXGI_ERROR_NOT_CURRENTLY_AVAILABLE = $887a0022
DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED = $887a0023
DXGI_ERROR_REMOTE_OUTOFMEMORY = $887a0024

DXGI_CPU_ACCESS_NONE = 0
DXGI_CPU_ACCESS_DYNAMIC = 1
DXGI_CPU_ACCESS_READ_WRITE = 2
DXGI_CPU_ACCESS_SCRATCH = 3
DXGI_CPU_ACCESS_FIELD = 15

DXGI_USAGE_SHADER_INPUT = 1 shl (0 + 4)
DXGI_USAGE_RENDER_TARGET_OUTPUT = 1 shl (1 + 4)
DXGI_USAGE_BACK_BUFFER = 1 shl (2 + 4)
DXGI_USAGE_SHARED = 1 shl (3 + 4)
DXGI_USAGE_READ_ONLY = 1 shl (4 + 4)
DXGI_USAGE_DISCARD_ON_PRESENT = 1 shl (5 + 4)
DXGI_USAGE_UNORDERED_ACCESS = 1 shl (6 + 4)

struct DXGIRGB
       Red dd ?
       Green dd ?
       Blue dd ?
ends

struct DXGIGAMMACONTROL
       Scale DXGIRGB
       Offset DXGIRGB
       GammaCurve DXGIRGB
		  db 1024*sizeof.DXGIRGB dup(?)
ends

struct DXGIGAMMACONTROLCAPABILITIES
       ScaleAndOffsetSupported dd ?
       MaxConvertedValue dd ?
       MinConvertedValue dd ?
       NumGammaControlPoints dd ?
       ControlPointPositions dd 1025 dup(?)
ends

struct DXGIRATIONAL
       Numerator dd ?
       Denominator dd ?
ends

DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0
DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE = 1
DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 2
DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 3

DXGI_MODE_SCALING_UNSPECIFIED = 0
DXGI_MODE_SCALING_CENTERED = 1
DXGI_MODE_SCALING_STRETCHED = 2

DXGI_MODE_ROTATION_UNSPECIFIED = 0
DXGI_MODE_ROTATION_IDENTITY = 1
DXGI_MODE_ROTATION_ROTATE90 = 2
DXGI_MODE_ROTATION_ROTATE180 = 3
DXGI_MODE_ROTATION_ROTATE270 = 4

struct DXGIMODEDESC
       Width dd ?
       Height dd ?
       RefreshRate DXGIRATIONAL
       Format dd ?
       ScanlineOrdering dd ?
       Scaling dd ?
ends

struct DXGISAMPLEDESC
       Count dd ?
       Quality dd ?
ends

DXGI_CPU_ACCESS_NONE = 0
DXGI_CPU_ACCESS_DYNAMIC = 1
DXGI_CPU_ACCESS_READ_WRITE = 2
DXGI_CPU_ACCESS_SCRATCH = 3
DXGI_CPU_ACCESS_FIELD = 15
DXGI_USAGE_SHADER_INPUT = 1 shl (0 + 4)
DXGI_USAGE_RENDER_TARGET_OUTPUT = 1 shl (1 + 4)
DXGI_USAGE_BACK_BUFFER = 1 shl (2 + 4)
DXGI_USAGE_SHARED = 1 shl (3 + 4)
DXGI_USAGE_READ_ONLY = 1 shl (4 + 4)
DXGI_USAGE_DISCARD_ON_PRESENT = 1 shl (5 + 4)
DXGI_USAGE_UNORDERED_ACCESS = 1 shl (6 + 4)

struct DXGIFRAMESTATISTICS
       PresentCount dd ?
       PresentRefreshCount dd ?
       SyncRefreshCount dd ?,?
       SyncQPCTime dq ?
       SyncGPUTime dq ?
ends

struct DXGIMAPPEDRECT
       Pitch dd ?,?
       pBits dq ?
ends

struct DXGIADAPTERDESC
       Description du 128 dup(?)
       VendorId dd ?
       DeviceId dd ?
       SubSysId dd ?
       Revision dd ?
       DedicatedVideoMemory dq ?
       DedicatedSystemMemory dq ?
       SharedSystemMemory dq ?
       AdapterLuid dq ?
ends

struct DXGIOUTPUTDESC
       DeviceName du 32 dup(?)
       DesktopCoordinates RECT
       AttachedToDesktop dd ?
       Rotation dd ?
       Monitor dq ?
ends

struct DXGISHAREDRESOURCE
       Handle dq ?
ends

DXGI_RESOURCE_PRIORITY_MINIMUM = $28000000
DXGI_RESOURCE_PRIORITY_LOW = $50000000
DXGI_RESOURCE_PRIORITY_NORMAL = $78000000
DXGI_RESOURCE_PRIORITY_HIGH = $a0000000
DXGI_RESOURCE_PRIORITY_MAXIMUM = $c8000000

DXGI_RESIDENCY_FULLY_RESIDENT = 1
DXGI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY = 2
DXGI_RESIDENCY_EVICTED_TO_DISK = 3

struct DXGISURFACEDESC
       Width dd ?
       Height dd ?
       Format dd ?
       SampleDesc DXGISAMPLEDESC
ends

DXGI_SWAP_EFFECT_DISCARD = 0
DXGI_SWAP_EFFECT_SEQUENTIAL = 1

DXGI_SWAP_CHAIN_FLAG_NONPREROTATED = 1
DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH = 2
DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE = 4

struct DXGISWAPCHAINDESC
       BufferDesc DXGIMODEDESC
       SampleDesc DXGISAMPLEDESC
       BufferUsage dd ?
       BufferCount dd ?,?
       OutputWindow dq ?
       Windowed dd ?
       SwapEffect dd ?
       Flags dd ?,?
ends

interface IDXGIObject,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent

interface IDXGIDeviceSubObject,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDevice
    
interface IDXGIResource,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDevice,\
	  GetSharedHandle,\
	  GetUsage,\
	  SetEvictionPriority,\
	  GetEvictionPriority
    
interface IDXGIKeyedMutex,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDevice,\
	  AcquireSync,\
	  ReleaseSync

DXGI_MAP_READ = 1
DXGI_MAP_WRITE = 2
DXGI_MAP_DISCARD = 4

interface IDXGISurface,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDevice,\
	  GetDesc,\
	  Map,\
	  Unmap
    
interface IDXGISurface1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDevice,\
	  GetDesc,\
	  Map,\
	  Unmap,\
	  GetDC,\
	  ReleaseDC
    
interface IDXGIAdapter,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  EnumOutputs,\
	  GetDesc,\
	  CheckInterfaceSupport
    
DXGI_ENUM_MODES_INTERLACED = 1
DXGI_ENUM_MODES_SCALING = 2

interface IDXGIOutput,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDesc,\
	  GetDisplayModeList,\
	  FindClosestMatchingMode,\
	  WaitForVBlank,\
	  TakeOwnership,\
	  ReleaseOwnership,\
	  GetGammaControlCapabilities,\
	  SetGammaControl,\
	  GetGammaControl,\
	  SetDisplaySurface,\
	  GetDisplaySurfaceData,\
	  GetFrameStatistics

DXGI_MAX_SWAP_CHAIN_BUFFERS = 16
DXGI_PRESENT_TEST = 1
DXGI_PRESENT_DO_NOT_SEQUENCE = 2
DXGI_PRESENT_RESTART = 4

interface IDXGISwapChain,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetDevice,\
	  Present,\
	  GetBuffer,\
	  SetFullscreenState,\
	  GetFullscreenState,\
	  GetDesc,\
	  ResizeBuffers,\
	  ResizeTarget,\
	  GetContainingOutput,\
	  GetFrameStatistics,\
	  GetLastPresentCount

DXGI_MWA_NO_WINDOW_CHANGES = 1 shl 0
DXGI_MWA_NO_ALT_ENTER = 1 shl 1
DXGI_MWA_NO_PRINT_SCREEN = 1 shl 2
DXGI_MWA_VALID = 7

interface IDXGIFactory,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  EnumAdapters,\
	  MakeWindowAssociation,\
	  GetWindowAssociation,\
	  CreateSwapChain,\
	  CreateSoftwareAdapter
    
interface IDXGIDevice,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetAdapter,\
	  CreateSurface,\
	  QueryResourceResidency,\
	  SetGPUThreadPriority,\
	  GetGPUThreadPriority

DXGI_ADAPTER_FLAG_NONE = 0
DXGI_ADAPTER_FLAG_REMOTE = 1
DXGI_ADAPTER_FLAG_FORCE_DWORD = $ffffffff

struct DXGIADAPTERDESC1
       Description du 128 dup(?)
       VendorId dd ?
       DeviceId dd ?
       SubSysId dd ?
       Revision dd ?
       DedicatedVideoMemory dq ?
       DedicatedSystemMemory dq ?
       SharedSystemMemory dq ?
       AdapterLuid LUID
       Flags dd ?,?
ends

struct DXGIDISPLAYCOLORSPACE
       PrimaryCoordinates dd 8*2 dup(?)
       WhitePoints dd 16*2 dup(?)
ends

interface IDXGIFactory1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  EnumAdapters,\
	  MakeWindowAssociation,\
	  GetWindowAssociation,\
	  CreateSwapChain,\
	  CreateSoftwareAdapter,\
	  EnumAdapters1,\
	  IsCurrent

interface IDXGIAdapter1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  EnumOutputs,\
	  GetDesc,\
	  CheckInterfaceSupport,\
	  GetDesc1

interface IDXGIDevice1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetPrivateData,\
	  GetParent,\
	  GetAdapter,\
	  CreateSurface,\
	  QueryResourceResidency,\
	  SetGPUThreadPriority,\
	  GetGPUThreadPriority,\
	  SetMaximumFrameLatency,\
	  GetMaximumFrameLatency

D3D10_1_DEFAULT_SAMPLE_MASK = $ffffffff
D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP equ 0.6
D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP equ 0.6
D3D10_1_GS_INPUT_REGISTER_COUNT = 32
D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32
D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128
D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32
D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1
D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1
D3D10_1_SHADER_MAJOR_VERSION = 4
D3D10_1_SHADER_MINOR_VERSION = 1
D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048
D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256
D3D10_1_SO_BUFFER_SLOT_COUNT = 4
D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1
D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64
D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32
D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8
D3D10_1_VS_INPUT_REGISTER_COUNT = 32
D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32

D3D10_16BIT_INDEX_STRIP_CUT_VALUE = $ffff
D3D10_32BIT_INDEX_STRIP_CUT_VALUE = $ffffffff
D3D10_8BIT_INDEX_STRIP_CUT_VALUE = $ff
D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9
D3D10_CLIP_OR_CULL_DISTANCE_COUNT = 8
D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2
D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14
D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4
D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32
D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15
D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4
D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15
D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1
D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1
D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64
D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4
D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1
D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1
D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1
D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32
D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1
D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128
D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1
D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1
D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128
D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1
D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16
D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1
D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1
D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT = 16
D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32
D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4
D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_COMMONSHADER_TEMP_REGISTER_COUNT = 4096
D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3
D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3
D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10
D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10
D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8
D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7
D3D10_DEFAULT_BLEND_FACTOR_ALPHA equ 1.0
D3D10_DEFAULT_BLEND_FACTOR_BLUE equ 1.0
D3D10_DEFAULT_BLEND_FACTOR_GREEN equ 1.0
D3D10_DEFAULT_BLEND_FACTOR_RED equ 1.0
D3D10_DEFAULT_BORDER_COLOR_COMPONENT equ 0.0
D3D10_DEFAULT_DEPTH_BIAS = 0
D3D10_DEFAULT_DEPTH_BIAS_CLAMP equ 0.0
D3D10_DEFAULT_MAX_ANISOTROPY equ 16.0
D3D10_DEFAULT_MIP_LOD_BIAS equ 0.0
D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0
D3D10_DEFAULT_SAMPLE_MASK = $ffffffff
D3D10_DEFAULT_SCISSOR_ENDX = 0
D3D10_DEFAULT_SCISSOR_ENDY = 0
D3D10_DEFAULT_SCISSOR_STARTX = 0
D3D10_DEFAULT_SCISSOR_STARTY = 0
D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS equ 0.0
D3D10_DEFAULT_STENCIL_READ_MASK = $ff
D3D10_DEFAULT_STENCIL_REFERENCE = 0
D3D10_DEFAULT_STENCIL_WRITE_MASK = $ff
D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0
D3D10_DEFAULT_VIEWPORT_HEIGHT = 0
D3D10_DEFAULT_VIEWPORT_MAX_DEPTH equ 0.0
D3D10_DEFAULT_VIEWPORT_MIN_DEPTH equ 0.0
D3D10_DEFAULT_VIEWPORT_TOPLEFTX = 0
D3D10_DEFAULT_VIEWPORT_TOPLEFTY = 0
D3D10_DEFAULT_VIEWPORT_WIDTH = 0
D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP equ 0.6
D3D10_FLOAT32_MAX equ 3.402823466e+38
D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP equ 0.6
D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR equ 2.4
D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR equ 1.0
D3D10_FLOAT_TO_SRGB_OFFSET equ 0.055
D3D10_FLOAT_TO_SRGB_SCALE_1 equ 12.92
D3D10_FLOAT_TO_SRGB_SCALE_2 equ 1.055
D3D10_FLOAT_TO_SRGB_THRESHOLD equ 0.0031308
D3D10_FTOI_INSTRUCTION_MAX_INPUT equ 2147483647.999
D3D10_FTOI_INSTRUCTION_MIN_INPUT equ -2147483648.999
D3D10_FTOU_INSTRUCTION_MAX_INPUT equ 4294967295.999
D3D10_FTOU_INSTRUCTION_MIN_INPUT equ 0.0
D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = 1
D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT = 1
D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = 2
D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = 1
D3D10_GS_INPUT_REGISTER_COMPONENTS = 4
D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_GS_INPUT_REGISTER_COUNT = 16
D3D10_GS_INPUT_REGISTER_READS_PER_INST = 2
D3D10_GS_INPUT_REGISTER_READ_PORTS = 1
D3D10_GS_INPUT_REGISTER_VERTICES = 6
D3D10_GS_OUTPUT_ELEMENTS = 32
D3D10_GS_OUTPUT_REGISTER_COMPONENTS = 4
D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_GS_OUTPUT_REGISTER_COUNT = 32
D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = 0
D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY = 0
D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = 0
D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = 1
D3D10_IA_INSTANCE_ID_BIT_COUNT = 32
D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT = 32
D3D10_IA_PRIMITIVE_ID_BIT_COUNT = 32
D3D10_IA_VERTEX_ID_BIT_COUNT = 32
D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 16
D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 64
D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 16
D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = $ffffffff
D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER = $ffffffff
D3D10_LINEAR_GAMMA equ 1.0
D3D10_MAX_BORDER_COLOR_COMPONENT equ 1.0
D3D10_MAX_DEPTH equ 1.0
D3D10_MAX_MAXANISOTROPY = 16
D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT = 32
D3D10_MAX_POSITION_VALUE equ 3.402823466e+34
D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP = 17
D3D10_MIN_BORDER_COLOR_COMPONENT equ 0.0
D3D10_MIN_DEPTH equ 0.0
D3D10_MIN_MAXANISOTROPY = 0
D3D10_MIP_LOD_BIAS_MAX equ 15.99
D3D10_MIP_LOD_BIAS_MIN equ -16.0
D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT = 6
D3D10_MIP_LOD_RANGE_BIT_COUNT = 8
D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH equ 1.4
D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = 0
D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT = 13
D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = 15
D3D10_PS_FRONTFACING_DEFAULT_VALUE = $ffffffff
D3D10_PS_FRONTFACING_FALSE_VALUE = 0
D3D10_PS_FRONTFACING_TRUE_VALUE = $ffffffff
D3D10_PS_INPUT_REGISTER_COMPONENTS = 4
D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_PS_INPUT_REGISTER_COUNT = 32
D3D10_PS_INPUT_REGISTER_READS_PER_INST = 2
D3D10_PS_INPUT_REGISTER_READ_PORTS = 1
D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT equ 0.0
D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1
D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1
D3D10_PS_OUTPUT_REGISTER_COMPONENTS = 4
D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_PS_OUTPUT_REGISTER_COUNT = 8
D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT equ 0.5
D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT = 4096
D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27
D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096
D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT = 4096
D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32
D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32
D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 8192
D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024
D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096
D3D10_REQ_MAXANISOTROPY = 16
D3D10_REQ_MIP_LEVELS = 14
D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048
D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT = 4096
D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 8192
D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES = 128
D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP = 20
D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT = 4096
D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 512
D3D10_REQ_TEXTURE1D_U_DIMENSION = 8192
D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 512
D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION = 8192
D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048
D3D10_REQ_TEXTURECUBE_DIMENSION = 8192
D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0
D3D10_SHADER_MAJOR_VERSION = 4
D3D10_SHADER_MINOR_VERSION = 0
D3D10_SHIFT_INSTRUCTION_PAD_VALUE = 0
D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5
D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT = 8
D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048
D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256
D3D10_SO_BUFFER_SLOT_COUNT = 4
D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP = $ffffffff
D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1
D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64
D3D10_SRGB_GAMMA equ 2.2
D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 equ 12.92
D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 equ 1.055
D3D10_SRGB_TO_FLOAT_EXPONENT equ 2.4
D3D10_SRGB_TO_FLOAT_OFFSET equ 0.055
D3D10_SRGB_TO_FLOAT_THRESHOLD equ 0.04045
D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP equ 0.5
D3D10_STANDARD_COMPONENT_BIT_COUNT = 32
D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64
D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4
D3D10_STANDARD_PIXEL_COMPONENT_COUNT = 128
D3D10_STANDARD_PIXEL_ELEMENT_COUNT = 32
D3D10_STANDARD_VECTOR_SIZE = 4
D3D10_STANDARD_VERTEX_ELEMENT_COUNT = 16
D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64
D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8
D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT = 6
D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT = 18
D3D10_UNBOUND_MEMORY_ACCESS_RESULT = 0
D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15
D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16
D3D10_VIEWPORT_BOUNDS_MAX = 16383
D3D10_VIEWPORT_BOUNDS_MIN = -16384
D3D10_VS_INPUT_REGISTER_COMPONENTS = 4
D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_VS_INPUT_REGISTER_COUNT = 16
D3D10_VS_INPUT_REGISTER_READS_PER_INST = 2
D3D10_VS_INPUT_REGISTER_READ_PORTS = 1
D3D10_VS_OUTPUT_REGISTER_COMPONENTS = 4
D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32
D3D10_VS_OUTPUT_REGISTER_COUNT = 16
D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = 10
D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 25
D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = 25
D3D_MAJOR_VERSION = 10
D3D_MINOR_VERSION = 0
D3D_SPEC_DATE_DAY = 8
D3D_SPEC_DATE_MONTH = 8
D3D_SPEC_DATE_YEAR = 2006
D3D_SPEC_VERSION equ 1.050005

D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT
D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT

D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS = $88790001
D3D10_ERROR_FILE_NOT_FOUND = $88790002

D3D10_INPUT_PER_VERTEX_DATA = 0
D3D10_INPUT_PER_INSTANCE_DATA = 1

D3D10_APPEND_ALIGNED_ELEMENT = $ffffffff

struct D3D10INPUTELEMENTDESC
       SemanticName dq ?
       SemanticIndex dd ?
       Format dd ?
       InputSlot dd ?
       AlignedByteOffset dd ?
       InputSlotClass dd ?
       InstanceDataStepRate dd ?
ends

D3D10_FILL_WIREFRAME = 2
D3D10_FILL_SOLID = 3

D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = 0
D3D10_PRIMITIVE_TOPOLOGY_POINTLIST = 1
D3D10_PRIMITIVE_TOPOLOGY_LINELIST = 2
D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP = 3
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST = 4
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = 5
D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10
D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = 11
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = 12
D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = 13

D3D10_PRIMITIVE_UNDEFINED = 0
D3D10_PRIMITIVE_POINT = 1
D3D10_PRIMITIVE_LINE = 2
D3D10_PRIMITIVE_TRIANGLE = 3
D3D10_PRIMITIVE_LINE_ADJ = 6
D3D10_PRIMITIVE_TRIANGLE_ADJ = 7

D3D10_CULL_NONE = 1
D3D10_CULL_FRONT = 2
D3D10_CULL_BACK = 3

struct D3D10SODECLARATIONENTRY
       SemanticName dq ?
       SemanticIndex dd ?
       StartComponent db ?
       ComponentCount db ?
       OutputSlot db ?,?
ends

struct D3D10VIEWPORT
       TopLeftX dd ?
       TopLeftY dd ?
       Width dd ?
       Height dd ?
       MinDepth dd ?
       MaxDepth dd ?
ends

D3D10_RESOURCE_DIMENSION_UNKNOWN = 0
D3D10_RESOURCE_DIMENSION_BUFFER = 1
D3D10_RESOURCE_DIMENSION_TEXTURE1D = 2
D3D10_RESOURCE_DIMENSION_TEXTURE2D = 3
D3D10_RESOURCE_DIMENSION_TEXTURE3D = 4

D3D10_SRV_DIMENSION_UNKNOWN = 0
D3D10_SRV_DIMENSION_BUFFER = 1
D3D10_SRV_DIMENSION_TEXTURE1D = 2
D3D10_SRV_DIMENSION_TEXTURE1DARRAY = 3
D3D10_SRV_DIMENSION_TEXTURE2D = 4
D3D10_SRV_DIMENSION_TEXTURE2DARRAY = 5
D3D10_SRV_DIMENSION_TEXTURE2DMS = 6
D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY = 7
D3D10_SRV_DIMENSION_TEXTURE3D = 8
D3D10_SRV_DIMENSION_TEXTURECUBE = 9

D3D10_DSV_DIMENSION_UNKNOWN = 0
D3D10_DSV_DIMENSION_TEXTURE1D = 1
D3D10_DSV_DIMENSION_TEXTURE1DARRAY = 2
D3D10_DSV_DIMENSION_TEXTURE2D = 3
D3D10_DSV_DIMENSION_TEXTURE2DARRAY = 4
D3D10_DSV_DIMENSION_TEXTURE2DMS = 5
D3D10_DSV_DIMENSION_TEXTURE2DMSARRAY = 6

D3D10_RTV_DIMENSION_UNKNOWN = 0
D3D10_RTV_DIMENSION_BUFFER = 1
D3D10_RTV_DIMENSION_TEXTURE1D = 2
D3D10_RTV_DIMENSION_TEXTURE1DARRAY = 3
D3D10_RTV_DIMENSION_TEXTURE2D = 4
D3D10_RTV_DIMENSION_TEXTURE2DARRAY = 5
D3D10_RTV_DIMENSION_TEXTURE2DMS = 6
D3D10_RTV_DIMENSION_TEXTURE2DMSARRAY = 7
D3D10_RTV_DIMENSION_TEXTURE3D = 8

D3D10_USAGE_DEFAULT = 0
D3D10_USAGE_IMMUTABLE = 1
D3D10_USAGE_DYNAMIC = 2
D3D10_USAGE_STAGING = 3

D3D10_BIND_VERTEX_BUFFER = 1
D3D10_BIND_INDEX_BUFFER = 2
D3D10_BIND_CONSTANT_BUFFER = 4
D3D10_BIND_SHADER_RESOURCE = 8
D3D10_BIND_STREAM_OUTPUT = $10
D3D10_BIND_RENDER_TARGET = $20
D3D10_BIND_DEPTH_STENCIL = $40

D3D10_CPU_ACCESS_WRITE = $10000
D3D10_CPU_ACCESS_READ = $20000

D3D10_RESOURCE_MISC_GENERATE_MIPS = 1
D3D10_RESOURCE_MISC_SHARED = 2
D3D10_RESOURCE_MISC_TEXTURECUBE = 4

D3D10_MAP_READ = 1
D3D10_MAP_WRITE = 2
D3D10_MAP_READ_WRITE = 3
D3D10_MAP_WRITE_DISCARD = 4
D3D10_MAP_WRITE_NO_OVERWRITE = 5

D3D10_MAP_FLAG_DO_NOT_WAIT = $100000

D3D10_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 1

D3D10_CLEAR_DEPTH = 1
D3D10_CLEAR_STENCIL = 2

struct D3D10BOX
       left dd ?
       top dd ?
       front dd ?
       right dd ?
       bottom dd ?
       back dd ?
ends

interface ID3D10DeviceChild,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface
    
D3D10_COMPARISON_NEVER = 1
D3D10_COMPARISON_LESS = 2
D3D10_COMPARISON_EQUAL = 3
D3D10_COMPARISON_LESS_EQUAL = 4
D3D10_COMPARISON_GREATER = 5
D3D10_COMPARISON_NOT_EQUAL = 6
D3D10_COMPARISON_GREATER_EQUAL = 7
D3D10_COMPARISON_ALWAYS = 8

D3D10_DEPTH_WRITE_MASK_ZERO = 0
D3D10_DEPTH_WRITE_MASK_ALL = 1

D3D10_STENCIL_OP_KEEP = 1
D3D10_STENCIL_OP_ZERO = 2
D3D10_STENCIL_OP_REPLACE = 3
D3D10_STENCIL_OP_INCR_SAT = 4
D3D10_STENCIL_OP_DECR_SAT = 5
D3D10_STENCIL_OP_INVERT = 6
D3D10_STENCIL_OP_INCR = 7
D3D10_STENCIL_OP_DECR = 8

struct D3D10DEPTHSTENCILOPDESC
       StencilFailOp dd ?
       StencilDepthFailOp dd ?
       StencilPassOp dd ?
       StencilFunc dd ?
ends

struct D3D10DEPTHSTENCILDESC
       DepthEnable dd ?
       DepthWriteMask dd ?
       DepthFunc dd ?
       StencilEnable dd ?
       StencilReadMask db ?
       StencilWriteMask db ?,?,?
       FrontFace D3D10DEPTHSTENCILOPDESC
       BackFace D3D10DEPTHSTENCILOPDESC
ends

interface ID3D10DepthStencilState,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetDesc
    
D3D10_BLEND_ZERO = 1
D3D10_BLEND_ONE = 2
D3D10_BLEND_SRC_COLOR = 3
D3D10_BLEND_INV_SRC_COLOR = 4
D3D10_BLEND_SRC_ALPHA = 5
D3D10_BLEND_INV_SRC_ALPHA = 6
D3D10_BLEND_DEST_ALPHA = 7
D3D10_BLEND_INV_DEST_ALPHA = 8
D3D10_BLEND_DEST_COLOR = 9
D3D10_BLEND_INV_DEST_COLOR = 10
D3D10_BLEND_SRC_ALPHA_SAT = 11
D3D10_BLEND_BLEND_FACTOR = 14
D3D10_BLEND_INV_BLEND_FACTOR = 15
D3D10_BLEND_SRC1_COLOR = 16
D3D10_BLEND_INV_SRC1_COLOR = 17
D3D10_BLEND_SRC1_ALPHA = 18
D3D10_BLEND_INV_SRC1_ALPHA = 19

D3D10_BLEND_OP_ADD = 1
D3D10_BLEND_OP_SUBTRACT = 2
D3D10_BLEND_OP_REV_SUBTRACT = 3
D3D10_BLEND_OP_MIN = 4
D3D10_BLEND_OP_MAX = 5

D3D10_COLOR_WRITE_ENABLE_RED = 1
D3D10_COLOR_WRITE_ENABLE_GREEN = 2
D3D10_COLOR_WRITE_ENABLE_BLUE = 4
D3D10_COLOR_WRITE_ENABLE_ALPHA = 8
D3D10_COLOR_WRITE_ENABLE_ALL = (((D3D10_COLOR_WRITE_ENABLE_RED or\
				  D3D10_COLOR_WRITE_ENABLE_GREEN) or\
				  D3D10_COLOR_WRITE_ENABLE_BLUE) or\
				  D3D10_COLOR_WRITE_ENABLE_ALPHA)

struct D3D10BLENDDESC
       AlphaToCoverageEnable dd ?
       BlendEnable dd 8 dup(?)
       SrcBlend dd ?
       DestBlend dd ?
       BlendOp dd ?
       SrcBlendAlpha dd ?
       DestBlendAlpha dd ?
       BlendOpAlpha dd ?
       RenderTargetWriteMask db 8 dup(?)
ends

interface ID3D10BlendState,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetDesc
    
struct D3D10RASTERIZERDESC
       FillMode dd ?
       CullMode dd ?
       FrontCounterClockwise dd ?
       DepthBias dd ?
       DepthBiasClamp dd ?
       SlopeScaledDepthBias dd ?
       DepthClipEnable dd ?
       ScissorEnable dd ?
       MultisampleEnable dd ?
       AntialiasedLineEnable dd ?
ends

interface ID3D10RasterizerState,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetDesc

struct D3D10SUBRESOURCEDATA
       pSysMem dq ?
       SysMemPitch dd ?
       SysMemSlicePitch dd ?
ends

interface ID3D10Resource,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetType,\
	  SetEvictionPriority,\
	  GetEvictionPriority
    
struct D3D10BUFFERDESC
       ByteWidth dd ?
       Usage dd ?
       BindFlags dd ?
       CPUAccessFlags dd ?
       MiscFlags dd ?
ends

interface ID3D10Buffer,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetType,\
	  SetEvictionPriority,\
	  GetEvictionPriority,\
	  Map,\
	  Unmap,\
	  GetDesc
    
struct D3D10TEXTURE1DDESC
       Width dd ?
       MipLevels dd ?
       ArraySize dd ?
       Format dd ?
       Usage dd ?
       BindFlags dd ?
       CPUAccessFlags dd ?
       MiscFlags dd ?
ends

interface ID3D10Texture1D,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetType,\
	  SetEvictionPriority,\
	  GetEvictionPriority,\
	  Map,\
	  Unmap,\
	  GetDesc

struct D3D10TEXTURE2DDESC
       Width dd ?
       Height dd ?
       MipLevels dd ?
       ArraySize dd ?
       Format dd ?
       SampleDesc DXGISAMPLEDESC
       Usage dd ?
       BindFlags dd ?
       CPUAccessFlags dd ?
       MiscFlags dd ?
ends

struct D3D10MAPPEDTEXTURE2D
       pData dq ?
       RowPitch dd ?,?
ends

interface ID3D10Texture2D,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetType,\
	  SetEvictionPriority,\
	  GetEvictionPriority,\
	  Map,\
	  Unmap,\
	  GetDesc
    
struct D3D10TEXTURE3DDESC
       Width dd ?
       Height dd ?
       Depth dd ?
       MipLevels dd ?
       Format dd ?
       Usage dd ?
       BindFlags dd ?
       CPUAccessFlags dd ?
       MiscFlags dd ?
ends

struct D3D10MAPPEDTEXTURE3D
       pData dq ?
       RowPitch dd ?
       DepthPitch dd ?
ends

interface ID3D10Texture3D,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetType,\
	  SetEvictionPriority,\
	  GetEvictionPriority,\
	  Map,\
	  Unmap,\
	  GetDesc

D3D10_TEXTURECUBE_FACE_POSITIVE_X = 0
D3D10_TEXTURECUBE_FACE_NEGATIVE_X = 1
D3D10_TEXTURECUBE_FACE_POSITIVE_Y = 2
D3D10_TEXTURECUBE_FACE_NEGATIVE_Y = 3
D3D10_TEXTURECUBE_FACE_POSITIVE_Z = 4
D3D10_TEXTURECUBE_FACE_NEGATIVE_Z = 5

interface ID3D10View,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetResource

struct D3D10BUFFERSRV
       union
	   FirstElement dd ?
	   ElementOffset dd ?
       ends
       union
	   NumElements dd ?
	   ElementWidth dd ?
       ends
ends

struct D3D10TEX1DSRV
       MostDetailedMip dd ?
       MipLevels dd ?
ends

struct D3D10TEX1DARRAYSRV
       MostDetailedMip dd ?
       MipLevels dd ?
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX2DSRV
       MostDetailedMip dd ?
       MipLevels dd ?
ends

struct D3D10TEX2DARRAYSRV
       MostDetailedMip dd ?
       MipLevels dd ?
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX3DSRV
       MostDetailedMip dd ?
       MipLevels dd ?
ends

struct D3D10TEXCUBESRV
       MostDetailedMip dd ?
       MipLevels dd ?
ends

struct D3D10TEX2DMSSRV
       UnusedField_NothingToDefine dd ?
ends

struct D3D10TEX2DMSARRAYSRV
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10SHADERRESOURCEVIEWDESC
       Format dd ?
       ViewDimension dd ?
       union
	   Buffer D3D10BUFFERSRV
	   Texture1D D3D10TEX1DSRV
	   Texture1DArray D3D10TEX1DARRAYSRV
	   Texture2D D3D10TEX2DSRV
	   Texture2DArray D3D10TEX2DARRAYSRV
	   Texture2DMS D3D10TEX2DMSSRV
	   Texture2DMSArray D3D10TEX2DMSARRAYSRV
	   Texture3D D3D10TEX3DSRV
	   TextureCube D3D10TEXCUBESRV
       ends
ends

interface ID3D10ShaderResourceView,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetResource,\
	  GetDesc

struct D3D10BUFFERRTV
       union
	   FirstElement dd ?
	   ElementOffset dd ?
       ends
       union
	   NumElements dd ?
	   ElementWidth dd ?
       ends
ends

struct D3D10TEX1DRTV
       MipSlice dd ?
ends

struct D3D10TEX1DARRAYRTV
       MipSlice dd ?
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX2DRTV
       MipSlice dd ?
ends

struct D3D10TEX2DMSRTV
       UnusedField_NothingToDefine dd ?
ends

struct D3D10TEX2DARRAYRTV
       MipSlice dd ?
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX2DMSARRAYRTV
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX3DRTV
       MipSlice dd ?
       FirstWSlice dd ?
       WSize dd ?
ends

struct D3D10RENDERTARGETVIEWDESC
       Format dd ?
       ViewDimension dd ?
       union
	   Buffer D3D10BUFFERRTV
	   Texture1D D3D10TEX1DRTV
	   Texture1DArray D3D10TEX1DARRAYRTV
	   Texture2D D3D10TEX2DRTV
	   Texture2DArray D3D10TEX2DARRAYRTV
	   Texture2DMS D3D10TEX2DMSRTV
	   Texture2DMSArray D3D10TEX2DMSARRAYRTV
	   Texture3D D3D10TEX3DRTV
       ends
ends

interface ID3D10RenderTargetView,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetResource,\
	  GetDesc

struct D3D10TEX1DDSV
       MipSlice dd ?
ends

struct D3D10TEX1DARRAYDSV
       MipSlice dd ?
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX2DDSV
       MipSlice dd ?
ends

struct D3D10TEX2DARRAYDSV
       MipSlice dd ?
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10TEX2DMSDSV
       UnusedField_NothingToDefine dd ?
ends

struct D3D10TEX2DMSARRAYDSV
       FirstArraySlice dd ?
       ArraySize dd ?
ends

struct D3D10DEPTHSTENCILVIEWDESC
       Format dd ?
       ViewDimension dd ?
       union
	   Texture1D	    D3D10TEX1DDSV
	   Texture1DArray   D3D10TEX1DARRAYDSV
	   Texture2D	    D3D10TEX2DDSV
	   Texture2DArray   D3D10TEX2DARRAYDSV
	   Texture2DMS	    D3D10TEX2DMSDSV
	   Texture2DMSArray D3D10TEX2DMSARRAYDSV
       ends
ends

interface ID3D10DepthStencilView,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetResource,\
	  GetDesc

interface ID3D10VertexShader,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface
    
interface ID3D10GeometryShader,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface
    
interface ID3D10PixelShader,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface
    
interface ID3D10InputLayout,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface
    

D3D10_FILTER_MIN_MAG_MIP_POINT = 0
D3D10_FILTER_MIN_MAG_POINT_MIP_LINEAR = 1
D3D10_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 4
D3D10_FILTER_MIN_POINT_MAG_MIP_LINEAR = 5
D3D10_FILTER_MIN_LINEAR_MAG_MIP_POINT = $10
D3D10_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = $11
D3D10_FILTER_MIN_MAG_LINEAR_MIP_POINT = $14
D3D10_FILTER_MIN_MAG_MIP_LINEAR = $15
D3D10_FILTER_ANISOTROPIC = $55
D3D10_FILTER_COMPARISON_MIN_MAG_MIP_POINT = $80
D3D10_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = $81
D3D10_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT	= $84
D3D10_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = $85
D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = $90
D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = $91
D3D10_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = $94
D3D10_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = $95
D3D10_FILTER_COMPARISON_ANISOTROPIC = $d5
D3D10_FILTER_TEXT_1BIT = $80000000

D3D10_FILTER_TYPE_POINT = 0
D3D10_FILTER_TYPE_LINEAR = 1

D3D10_FILTER_TYPE_MASK = 3
D3D10_MIN_FILTER_SHIFT = 4
D3D10_MAG_FILTER_SHIFT = 2
D3D10_MIP_FILTER_SHIFT = 0
D3D10_COMPARISON_FILTERING_BIT = $80
D3D10_ANISOTROPIC_FILTERING_BIT = $40
D3D10_TEXT_1BIT_BIT = $80000000

D3D10_TEXTURE_ADDRESS_WRAP = 1
D3D10_TEXTURE_ADDRESS_MIRROR = 2
D3D10_TEXTURE_ADDRESS_CLAMP = 3
D3D10_TEXTURE_ADDRESS_BORDER = 4
D3D10_TEXTURE_ADDRESS_MIRROR_ONCE = 5

struct D3D10SAMPLERDESC
       Filter dd ?
       AddressU dd ?
       AddressV dd ?
       AddressW dd ?
       MipLODBias dd ?
       MaxAnisotropy dd ?
       ComparisonFunc dd ?
       BorderColor dd 4 dup(?)
       MinLOD dd ?
       MaxLOD dd ?
ends

interface ID3D10SamplerState,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetDesc

D3D10_FORMAT_SUPPORT_BUFFER = 1
D3D10_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 2
D3D10_FORMAT_SUPPORT_IA_INDEX_BUFFER = 4
D3D10_FORMAT_SUPPORT_SO_BUFFER = 8
D3D10_FORMAT_SUPPORT_TEXTURE1D = $10
D3D10_FORMAT_SUPPORT_TEXTURE2D = $20
D3D10_FORMAT_SUPPORT_TEXTURE3D = $40
D3D10_FORMAT_SUPPORT_TEXTURECUBE = $80
D3D10_FORMAT_SUPPORT_SHADER_LOAD = $100
D3D10_FORMAT_SUPPORT_SHADER_SAMPLE = $200
D3D10_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = $400
D3D10_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = $800
D3D10_FORMAT_SUPPORT_MIP = $1000
D3D10_FORMAT_SUPPORT_MIP_AUTOGEN = $2000
D3D10_FORMAT_SUPPORT_RENDER_TARGET = $4000
D3D10_FORMAT_SUPPORT_BLENDABLE = $8000
D3D10_FORMAT_SUPPORT_DEPTH_STENCIL = $10000
D3D10_FORMAT_SUPPORT_CPU_LOCKABLE = $20000
D3D10_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = $40000
D3D10_FORMAT_SUPPORT_DISPLAY = $80000
D3D10_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = $100000
D3D10_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = $200000
D3D10_FORMAT_SUPPORT_MULTISAMPLE_LOAD = $400000
D3D10_FORMAT_SUPPORT_SHADER_GATHER = $800000

interface ID3D10Asynchronous,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  Begin,\
	  End,\
	  GetData,\
	  GetDataSize

D3D10_ASYNC_GETDATA_DONOTFLUSH = 1

D3D10_QUERY_EVENT = 0
D3D10_QUERY_OCCLUSION = (D3D10_QUERY_EVENT + 1)
D3D10_QUERY_TIMESTAMP = (D3D10_QUERY_OCCLUSION + 1)
D3D10_QUERY_TIMESTAMP_DISJOINT = (D3D10_QUERY_TIMESTAMP + 1)
D3D10_QUERY_PIPELINE_STATISTICS = (D3D10_QUERY_TIMESTAMP_DISJOINT + 1)
D3D10_QUERY_OCCLUSION_PREDICATE = (D3D10_QUERY_PIPELINE_STATISTICS + 1)
D3D10_QUERY_SO_STATISTICS = (D3D10_QUERY_OCCLUSION_PREDICATE + 1)
D3D10_QUERY_SO_OVERFLOW_PREDICATE = (D3D10_QUERY_SO_STATISTICS + 1)

D3D10_QUERY_MISC_PREDICATEHINT = 1

struct D3D10QUERYDESC
       Query dd ?
       MiscFlags dd ?
ends

interface ID3D10Query,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  Begin,\
	  End,\
	  GetData,\
	  GetDataSize,\
	  GetDesc
    
interface ID3D10Predicate,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  Begin,\
	  End,\
	  GetData,\
	  GetDataSize,\
	  GetDesc
    
struct D3D10QUERYDATATIMESTAMPDISJOINT
       Frequency dq ?
       Disjoint dd ?,?
ends

struct D3D10QUERYDATAPIPELINESTATISTICS
       IAVertices dq ?
       IAPrimitives dq ?
       VSInvocations dq ?
       GSInvocations dq ?
       GSPrimitives dq ?
       CInvocations dq ?
       CPrimitives dq ?
       PSInvocations dq ?
ends

struct D3D10QUERYDATASOSTATISTICS
       NumPrimitivesWritten dq ?
       PrimitivesStorageNeeded dq ?
ends

D3D10_COUNTER_GPU_IDLE	= 0
D3D10_COUNTER_VERTEX_PROCESSING = (D3D10_COUNTER_GPU_IDLE + 1)
D3D10_COUNTER_GEOMETRY_PROCESSING = (D3D10_COUNTER_VERTEX_PROCESSING + 1)
D3D10_COUNTER_PIXEL_PROCESSING	= (D3D10_COUNTER_GEOMETRY_PROCESSING + 1)
D3D10_COUNTER_OTHER_GPU_PROCESSING = (D3D10_COUNTER_PIXEL_PROCESSING + 1)
D3D10_COUNTER_HOST_ADAPTER_BANDWIDTH_UTILIZATION = (D3D10_COUNTER_OTHER_GPU_PROCESSING + 1)
D3D10_COUNTER_LOCAL_VIDMEM_BANDWIDTH_UTILIZATION = (D3D10_COUNTER_HOST_ADAPTER_BANDWIDTH_UTILIZATION + 1)
D3D10_COUNTER_VERTEX_THROUGHPUT_UTILIZATION = (D3D10_COUNTER_LOCAL_VIDMEM_BANDWIDTH_UTILIZATION + 1)
D3D10_COUNTER_TRIANGLE_SETUP_THROUGHPUT_UTILIZATION = (D3D10_COUNTER_VERTEX_THROUGHPUT_UTILIZATION + 1)
D3D10_COUNTER_FILLRATE_THROUGHPUT_UTILIZATION = (D3D10_COUNTER_TRIANGLE_SETUP_THROUGHPUT_UTILIZATION + 1)
D3D10_COUNTER_VS_MEMORY_LIMITED = (D3D10_COUNTER_FILLRATE_THROUGHPUT_UTILIZATION + 1)
D3D10_COUNTER_VS_COMPUTATION_LIMITED = (D3D10_COUNTER_VS_MEMORY_LIMITED + 1)
D3D10_COUNTER_GS_MEMORY_LIMITED = (D3D10_COUNTER_VS_COMPUTATION_LIMITED + 1)
D3D10_COUNTER_GS_COMPUTATION_LIMITED = (D3D10_COUNTER_GS_MEMORY_LIMITED + 1)
D3D10_COUNTER_PS_MEMORY_LIMITED = (D3D10_COUNTER_GS_COMPUTATION_LIMITED + 1)
D3D10_COUNTER_PS_COMPUTATION_LIMITED = (D3D10_COUNTER_PS_MEMORY_LIMITED + 1)
D3D10_COUNTER_POST_TRANSFORM_CACHE_HIT_RATE	= (D3D10_COUNTER_PS_COMPUTATION_LIMITED + 1)
D3D10_COUNTER_TEXTURE_CACHE_HIT_RATE = (D3D10_COUNTER_POST_TRANSFORM_CACHE_HIT_RATE + 1)
D3D10_COUNTER_DEVICE_DEPENDENT_0 = $40000000

D3D10_COUNTER_TYPE_FLOAT32 = 0
D3D10_COUNTER_TYPE_UINT16 = (D3D10_COUNTER_TYPE_FLOAT32 + 1)
D3D10_COUNTER_TYPE_UINT32 = (D3D10_COUNTER_TYPE_UINT16 + 1)
D3D10_COUNTER_TYPE_UINT64 = (D3D10_COUNTER_TYPE_UINT32 + 1)

struct D3D10COUNTERDESC
       Counter dd ?
       MiscFlags dd ?
ends

struct D3D10COUNTERINFO
       LastDeviceDependentCounter dd ?
       NumSimultaneousCounters dd ?
       NumDetectableParallelUnits db ?,?,?,?
ends

interface ID3D10Counter,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  Begin,\
	  End,\
	  GetData,\
	  GetDataSize,\
	  GetDesc

interface ID3D10Device,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  VSSetConstantBuffers,\
	  PSSetShaderResources,\
	  PSSetShader,\
	  PSSetSamplers,\
	  VSSetShader,\
	  DrawIndexed,\
	  Draw,\
	  PSSetConstantBuffers,\
	  IASetInputLayout,\
	  IASetVertexBuffers,\
	  IASetIndexBuffer,\
	  DrawIndexedInstanced,\
	  DrawInstanced,\
	  GSSetConstantBuffers,\
	  GSSetShader,\
	  IASetPrimitiveTopology,\
	  VSSetShaderResources,\
	  VSSetSamplers,\
	  SetPredication,\
	  GSSetShaderResources,\
	  GSSetSamplers,\
	  OMSetRenderTargets,\
	  OMSetBlendState,\
	  OMSetDepthStencilState,\
	  SOSetTargets,\
	  DrawAuto,\
	  RSSetState,\
	  RSSetViewports,\
	  RSSetScissorRects,\
	  CopySubresourceRegion,\
	  CopyResource,\
	  UpdateSubresource,\
	  ClearRenderTargetView,\
	  ClearDepthStencilView,\
	  GenerateMips,\
	  ResolveSubresource,\
	  VSGetConstantBuffers,\
	  PSGetShaderResources,\
	  PSGetShader,\
	  PSGetSamplers,\
	  VSGetShader,\
	  PSGetConstantBuffers,\
	  IAGetInputLayout,\
	  IAGetVertexBuffers,\
	  IAGetIndexBuffer,\
	  GSGetConstantBuffers,\
	  GSGetShader,\
	  IAGetPrimitiveTopology,\
	  VSGetShaderResources,\
	  VSGetSamplers,\
	  GetPredication,\
	  GSGetShaderResources,\
	  GSGetSamplers,\
	  OMGetRenderTargets,\
	  OMGetBlendState,\
	  OMGetDepthStencilState,\
	  SOGetTargets,\
	  RSGetState,\
	  RSGetViewports,\
	  RSGetScissorRects,\
	  GetDeviceRemovedReason,\
	  SetExceptionMode,\
	  GetExceptionMode,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  ClearState,\
	  Flush,\
	  CreateBuffer,\
	  CreateTexture1D,\
	  CreateTexture2D,\
	  CreateTexture3D,\
	  CreateShaderResourceView,\
	  CreateRenderTargetView,\
	  CreateDepthStencilView,\
	  CreateInputLayout,\
	  CreateVertexShader,\
	  CreateGeometryShader,\
	  CreateGeometryShaderWithStreamOutput,\
	  CreatePixelShader,\
	  CreateBlendState,\
	  CreateDepthStencilState,\
	  CreateRasterizerState,\
	  CreateSamplerState,\
	  CreateQuery,\
	  CreatePredicate,\
	  CreateCounter,\
	  CheckFormatSupport,\
	  CheckMultisampleQualityLevels,\
	  CheckCounterInfo,\
	  CheckCounter,\
	  GetCreationFlags,\
	  OpenSharedResource,\
	  SetTextFilterSize,\
	  GetTextFilterSize
    
interface ID3D10Multithread,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Enter,\
	  Leave,\
	  SetMultithreadProtected,\
	  GetMultithreadProtected

D3D10_CREATE_DEVICE_SINGLETHREADED = 1
D3D10_CREATE_DEVICE_DEBUG = 2
D3D10_CREATE_DEVICE_SWITCH_TO_REF = 4
D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 8

D3D10_SDK_LAYERS_VERSION = 11
D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP = 1
D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP = 2
D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP = 4

interface ID3D10Debug,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetFeatureMask,\
	  GetFeatureMask,\
	  SetPresentPerRenderOpDelay,\
	  GetPresentPerRenderOpDelay,\
	  SetSwapChain,\
	  GetSwapChain,\
	  Validate
    
interface ID3D10SwitchToRef,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetUseRef,\
	  GetUseRef
    
D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0
D3D10_MESSAGE_CATEGORY_MISCELLANEOUS = (D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED + 1)
D3D10_MESSAGE_CATEGORY_INITIALIZATION = (D3D10_MESSAGE_CATEGORY_MISCELLANEOUS + 1)
D3D10_MESSAGE_CATEGORY_CLEANUP = (D3D10_MESSAGE_CATEGORY_INITIALIZATION + 1)
D3D10_MESSAGE_CATEGORY_COMPILATION = (D3D10_MESSAGE_CATEGORY_CLEANUP + 1)
D3D10_MESSAGE_CATEGORY_STATE_CREATION = (D3D10_MESSAGE_CATEGORY_COMPILATION + 1)
D3D10_MESSAGE_CATEGORY_STATE_SETTING = (D3D10_MESSAGE_CATEGORY_STATE_CREATION + 1)
D3D10_MESSAGE_CATEGORY_STATE_GETTING = (D3D10_MESSAGE_CATEGORY_STATE_SETTING + 1)
D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = (D3D10_MESSAGE_CATEGORY_STATE_GETTING + 1)
D3D10_MESSAGE_CATEGORY_EXECUTION = (D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1)

D3D10_MESSAGE_SEVERITY_CORRUPTION = 0
D3D10_MESSAGE_SEVERITY_ERROR = (D3D10_MESSAGE_SEVERITY_CORRUPTION + 1)
D3D10_MESSAGE_SEVERITY_WARNING = (D3D10_MESSAGE_SEVERITY_ERROR + 1)
D3D10_MESSAGE_SEVERITY_INFO = (D3D10_MESSAGE_SEVERITY_WARNING + 1)

D3D10_MESSAGE_ID_UNKNOWN = 0
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD = (D3D10_MESSAGE_ID_UNKNOWN + 1)
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD = (D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD = (D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD = (D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD = (D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD = (D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD = (D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD = (D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD + 1)
D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD = (D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD + 1)
D3D10_MESSAGE_ID_STRING_FROM_APPLICATION = (D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD + 1)
D3D10_MESSAGE_ID_CORRUPTED_THIS = (D3D10_MESSAGE_ID_STRING_FROM_APPLICATION + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1 = (D3D10_MESSAGE_ID_CORRUPTED_THIS + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13 + 1)
D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15 = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14 + 1)
D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING = (D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15 + 1)
D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = (D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING + 1)
D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT + 1 )
D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT = (D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = (D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT + 1)
D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = (D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA + 1)
D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN = (D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA + 1)
D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS = (D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN + 1)
D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = (D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS + 1)
D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = (D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES = (D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS = (D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS = (D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC = (D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS = (D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION = (D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT = (D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES = (D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC = (D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION = (D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION + 1 )
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT = (D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES = (D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC = (D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION = (D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT = (D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES = (D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC = (D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION = (D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = (D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT + 1)
D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = (D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = (D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = (D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED	= (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT	= (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX + 1)
D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE + 1)
D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = (D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY + 1)
D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = (D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = (D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK	= (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC + 1)
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS + 1)
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC + 1)
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS = (D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY + 1)
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG = (D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS + 1)
D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC = (D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG + 1)
D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED = (D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC + 1)
D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED = (D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED + 1)
D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER = (D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED + 1)
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE = (D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE + 1)
D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER = (D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID = (D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE = (D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID + 1)
D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED = (D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE + 1)
D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED + 1)
D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER = (D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY + 1)
D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER = (D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER = (D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED = (D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED + 1)
D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER = (D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT = (D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR = (D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT + 1)
D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH = (D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR + 1)
D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH = (D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH + 1)
D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = (D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH + 1)
D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID + 1)
D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY = (D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY + 1)
D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID = (D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY + 1)
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE = (D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID + 1)
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE = (D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE + 1)
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX = (D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE + 1)
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE = (D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX + 1)
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE = (D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE + 1)
D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE = (D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE + 1)
D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE = (D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE + 1)
D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE = (D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE + 1)
D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE = (D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE + 1)
D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE = (D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE + 1 )
D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX = (D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE + 1 )
D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE = (D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX + 1)
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID = (D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE + 1)
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID = (D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID + 1)
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID = (D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID + 1)
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID = (D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID + 1)
D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID = (D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID + 1)
D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE = (D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID + 1)
D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS = (D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE + 1)
D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED = (D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS + 1)
D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN = (D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED + 1)
D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED = (D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN + 1)
D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE = (D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED + 1)
D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE = (D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE + 1)
D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS = (D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE + 1)
D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED = (D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS + 1)
D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN = (D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED + 1)
D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE = (D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN + 1)
D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED = (D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE + 1)
D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE = (D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED + 1)
D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE = (D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE + 1)
D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS = (D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE + 1)
D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED = (D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS + 1)
D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN = (D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED + 1)
D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE = (D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN + 1)
D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED = (D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE + 1)
D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE = (D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED + 1)
D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE = (D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE + 1)
D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS = (D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE + 1)
D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED = (D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS + 1)
D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN = (D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED + 1)
D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE = (D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN + 1)
D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED = (D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE + 1)
D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED = (D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED + 1)
D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED	= (D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED + 1)
D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS = (D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED + 1)
D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS + 1)
D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN = (D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE = (D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN + 1 )
D3D10_MESSAGE_ID_REF_THREADING_MODE = (D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE + 1)
D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION = (D3D10_MESSAGE_ID_REF_THREADING_MODE + 1)
D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION = (D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION + 1)
D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION = (D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION + 1)
D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE = (D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION + 1)
D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER = (D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE + 1)
D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY = (D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER + 1)
D3D10_MESSAGE_ID_REF_INFO = (D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW = (D3D10_MESSAGE_ID_REF_INFO + 1)
D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW + 1)
D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW = (D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW + 1)
D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW = (D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW + 1)
D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW = (D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW + 1)
D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW = (D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW + 1)
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX = (D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND + 1)
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE = (D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX + 1)
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK = (D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE + 1)
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE = (D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK + 1)
D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = (D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL = (D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH = (D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = (D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID = (D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL = (D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH = (D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH = (D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT = (D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED = (D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY = (D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED = (D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED = (D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED = (D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED = (D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED = (D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED = (D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED = (D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE = (D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER = (D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = (D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = (D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING + 1)
D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = (D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 + 1)
D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = (D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT + 1)
D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = (D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT + 1)
D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN = (D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT + 1)
D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN + 1)
D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN = (D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET = (D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = (D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET + 1)
D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC + 1)
D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH = (D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC + 1)
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW = (D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH + 1)
D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS = (D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH = (D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = (D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH + 1)
D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH + 1)
D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY = (D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY + 1)
D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY + 1)
D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER = (D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED = (D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER + 1)
D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = (D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED + 1)
D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN = (D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1)
D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN = (D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN + 1)
D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC = (D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN + 1)
D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER = (D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC + 1)
D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = (D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER + 1)
D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE = (D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1)
D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED = (D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE + 1)
D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION = (D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE = (D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION + 1)
D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS = (D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE + 1)
D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION = (D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS + 1)
D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS = (D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION + 1)
D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN = (D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS + 1)
D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE = (D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN + 1)
D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS = (D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE + 1)
D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL = (D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH = (D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED = (D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH + 1)
D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = (D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE = (D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN + 1)
D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE = (D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE + 1)
D3D10_MESSAGE_ID_D3D10_MESSAGES_END = (D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE + 1)
D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START = $100000
D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED = (D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED = (D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY + 1)
D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE + 1)
D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS = (D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS = (D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS = (D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND = (D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D = (D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE = (D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE = (D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE + 1)
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS = (D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE + 1)
D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS = (D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS + 1)
D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX = (D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS + 1)
D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS = (D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX + 1)
D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS + 1)
D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS = (D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY = (D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS + 1)
D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK = (D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY + 1)
D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK = (D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK + 1)
D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT = (D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE = (D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT + 1)
D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE + 1)
D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE = (D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD = (D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX + 1)
D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET = (D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER = (D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE = (D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE	= (D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE = (D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS = (D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES = (D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED = (D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES + 1)
D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED = (D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED + 1)
D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED = (D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED = (D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED = (D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND = (D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND + 1)
D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND + 1)
D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE = (D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED = (D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE + 1)
D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 = (D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED + 1)
D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED = (D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 + 1)
D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO = (D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED + 1)
D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION = (D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO + 1)
D3D10_MESSAGE_ID_D3D10L9_MESSAGES_END = (D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION + 1)

struct D3D10MESSAGE
       Category dd ?
       Severity dd ?
       ID dd ?,?
       pDescription dq ?
       DescriptionByteLength dq ?
ends

struct D3D10INFOQUEUEFILTERDESC
       NumCategories dd ?,?
       pCategoryList dq ?
       NumSeverities dd ?,?
       pSeverityList dq ?
       NumIDs dd ?,?
       pIDList dq ?
ends

struct D3D10INFOQUEUEFILTER
       AllowList D3D10INFOQUEUEFILTERDESC
       DenyList D3D10INFOQUEUEFILTERDESC
ends

D3D10_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024

interface ID3D10InfoQueue,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  SetMessageCountLimit,\
	  ClearStoredMessages,\
	  GetMessage,\
	  GetNumMessagesAllowedByStorageFilter,\
	  GetNumMessagesDeniedByStorageFilter,\
	  GetNumStoredMessages,\
	  GetNumStoredMessagesAllowedByRetrievalFilter,\
	  GetNumMessagesDiscardedByMessageCountLimit,\
	  GetMessageCountLimit,\
	  AddStorageFilterEntries,\
	  GetStorageFilter,\
	  ClearStorageFilter,\
	  PushEmptyStorageFilter,\
	  PushCopyOfStorageFilter,\
	  PushStorageFilter,\
	  PopStorageFilter,\
	  GetStorageFilterStackSize,\
	  AddRetrievalFilterEntries,\
	  GetRetrievalFilter,\
	  ClearRetrievalFilter,\
	  PushEmptyRetrievalFilter,\
	  PushCopyOfRetrievalFilter,\
	  PushRetrievalFilter,\
	  PopRetrievalFilter,\
	  GetRetrievalFilterStackSize,\
	  AddMessage,\
	  AddApplicationMessage,\
	  SetBreakOnCategory,\
	  SetBreakOnSeverity,\
	  SetBreakOnID,\
	  GetBreakOnCategory,\
	  GetBreakOnSeverity,\
	  GetBreakOnID,\
	  SetMuteDebugOutput,\
	  GetMuteDebugOutput

D3D10_REGKEY_PATH equ "Software\\Microsoft\\Direct3D"
D3D10_MUTE_DEBUG_OUTPUT equ "MuteDebugOutput"
D3D10_ENABLE_BREAK_ON_MESSAGE equ "EnableBreakOnMessage"
D3D10_INFOQUEUE_STORAGE_FILTER_OVERRIDE equ "InfoQueueStorageFilterOverride"
D3D10_MUTE_CATEGORY equ "Mute_CATEGORY_%s"
D3D10_MUTE_SEVERITY equ "Mute_SEVERITY_%s"
D3D10_MUTE_ID_STRING equ "Mute_ID_%s"
D3D10_MUTE_ID_DECIMAL equ "Mute_ID_%d"
D3D10_UNMUTE_SEVERITY_INFO equ "Unmute_SEVERITY_INFO"
D3D10_BREAKON_CATEGORY equ "BreakOn_CATEGORY_%s"
D3D10_BREAKON_SEVERITY equ "BreakOn_SEVERITY_%s"
D3D10_BREAKON_ID_STRING equ "BreakOn_ID_%s"
D3D10_BREAKON_ID_DECIMAL equ "BreakOn_ID_%d"
D3D10_APPSIZE_STRING equ "Size"
D3D10_APPNAME_STRING equ "Name"

;Copyright (c) Microsoft Corporation.  All rights reserved.
;File:       D3D10Misc.h
;Content:    D3D10 Device Creation APIs

interface ID3D10Blob,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetBufferPointer

D3D10_DRIVER_TYPE_HARDWARE  = 0
D3D10_DRIVER_TYPE_REFERENCE = 1
D3D10_DRIVER_TYPE_NULL	    = 2
D3D10_DRIVER_TYPE_SOFTWARE  = 3

;Copyright (c) Microsoft Corporation.  All rights reserved.
;File:       D3D10Shader.h
;Content:    D3D10 Shader Types and APIs

macro D3D10_TX_VERSION _major, _minor {
      ('T' shl 24) or ('X' shl 16) or (_major shl 8) or _minor
}

D3D10_SHADER_DEBUG = (1 shl 0)
D3D10_SHADER_SKIP_VALIDATION = (1 shl 1)
D3D10_SHADER_SKIP_OPTIMIZATION = (1 shl 2)
D3D10_SHADER_PACK_MATRIX_ROW_MAJOR = (1 shl 3)
D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR = (1 shl 4)
D3D10_SHADER_PARTIAL_PRECISION = (1 shl 5)
D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT = (1 shl 6)
D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT = (1 shl 7)
D3D10_SHADER_NO_PRESHADER = (1 shl 8)
D3D10_SHADER_AVOID_FLOW_CONTROL = (1 shl 9)
D3D10_SHADER_PREFER_FLOW_CONTROL = (1 shl 10)
D3D10_SHADER_ENABLE_STRICTNESS = (1 shl 11)
D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY = (1 shl 12)
D3D10_SHADER_IEEE_STRICTNESS = (1 shl 13)
D3D10_SHADER_OPTIMIZATION_LEVEL0 = (1 shl 14)
D3D10_SHADER_OPTIMIZATION_LEVEL1 = 0
D3D10_SHADER_OPTIMIZATION_LEVEL2 = (1 shl 14) or (1 shl 15)
D3D10_SHADER_OPTIMIZATION_LEVEL3 = (1 shl 15)

struct D3D10SHADERMACRO
       Name dq ?
       Definition dq ?
ends

D3D10_SVC_SCALAR = 0
D3D10_SVC_VECTOR = 1
D3D10_SVC_MATRIX_ROWS = 2
D3D10_SVC_MATRIX_COLUMNS = 3
D3D10_SVC_OBJECT = 4
D3D10_SVC_STRUCT = 5
D3D11_SVC_INTERFACE_CLASS = 6
D3D11_SVC_INTERFACE_POINTER = 7

D3D10_SVF_USERPACKED = 1
D3D10_SVF_USED = 2
D3D11_SVF_INTERFACE_POINTER = 4

D3D10_SVT_VOID = 0
D3D10_SVT_BOOL = 1
D3D10_SVT_INT = 2
D3D10_SVT_FLOAT = 3
D3D10_SVT_STRING = 4
D3D10_SVT_TEXTURE = 5
D3D10_SVT_TEXTURE1D = 6
D3D10_SVT_TEXTURE2D = 7
D3D10_SVT_TEXTURE3D = 8
D3D10_SVT_TEXTURECUBE = 9
D3D10_SVT_SAMPLER = 10
D3D10_SVT_PIXELSHADER = 15
D3D10_SVT_VERTEXSHADER = 16
D3D10_SVT_UINT = 19
D3D10_SVT_UINT8 = 20
D3D10_SVT_GEOMETRYSHADER = 21
D3D10_SVT_RASTERIZER = 22
D3D10_SVT_DEPTHSTENCIL = 23
D3D10_SVT_BLEND = 24
D3D10_SVT_BUFFER = 25
D3D10_SVT_CBUFFER = 26
D3D10_SVT_TBUFFER = 27
D3D10_SVT_TEXTURE1DARRAY = 28
D3D10_SVT_TEXTURE2DARRAY = 29
D3D10_SVT_RENDERTARGETVIEW = 30
D3D10_SVT_DEPTHSTENCILVIEW = 31
D3D10_SVT_TEXTURE2DMS = 32
D3D10_SVT_TEXTURE2DMSARRAY = 33
D3D10_SVT_TEXTURECUBEARRAY = 34
D3D11_SVT_HULLSHADER = 35
D3D11_SVT_DOMAINSHADER = 36
D3D11_SVT_INTERFACE_POINTER = 37
D3D11_SVT_COMPUTESHADER = 38

D3D10_SIF_USERPACKED = 1
D3D10_SIF_COMPARISON_SAMPLER = 2
D3D10_SIF_TEXTURE_COMPONENT_0 = 4
D3D10_SIF_TEXTURE_COMPONENT_1 = 8
D3D10_SIF_TEXTURE_COMPONENTS = 12

D3D10_SIT_CBUFFER = 0
D3D10_SIT_TBUFFER = 1
D3D10_SIT_TEXTURE = 2
D3D10_SIT_SAMPLER = 3
D3D11_SIT_UAV_RWTYPED = 4
D3D11_SIT_STRUCTURED = 5
D3D11_SIT_UAV_RWSTRUCTURED = 6
D3D11_SIT_BYTEADDRESS = 7
D3D11_SIT_UAV_RWBYTEADDRESS = 8
D3D11_SIT_UAV_APPEND_BYTEADDRESS = 9
D3D11_SIT_UAV_CONSUME_BYTEADDRESS = 10
D3D11_SIT_UAV_APPEND_STRUCTURED = 11
D3D11_SIT_UAV_CONSUME_STRUCTURED = 12

D3D10_CBF_USERPACKED = 1

D3D10_CT_CBUFFER = 0
D3D10_CT_TBUFFER = 1
D3D11_CT_INTERFACE_POINTERS = 2
D3D11_CT_RESOURCE_BIND_INFO = 3

D3D10_NAME_UNDEFINED = 0

D3D10_NAME_POSITION = 1
D3D10_NAME_CLIP_DISTANCE = 2
D3D10_NAME_CULL_DISTANCE = 3
D3D10_NAME_RENDER_TARGET_ARRAY_INDEX = 4
D3D10_NAME_VIEWPORT_ARRAY_INDEX = 5
D3D10_NAME_VERTEX_ID = 6
D3D10_NAME_PRIMITIVE_ID = 7
D3D10_NAME_INSTANCE_ID = 8
D3D10_NAME_IS_FRONT_FACE = 9
D3D10_NAME_SAMPLE_INDEX = 10
D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR = 11
D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR = 12
D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR = 13
D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR = 14
D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR = 15
D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR = 16
D3D10_NAME_TARGET = 64
D3D10_NAME_DEPTH = 65
D3D10_NAME_COVERAGE = 66
D3D11_NAME_DEPTH_GREATER_EQUAL = 67
D3D11_NAME_DEPTH_LESS_EQUAL = 68

D3D10_RETURN_TYPE_UNORM = 1
D3D10_RETURN_TYPE_SNORM = 2
D3D10_RETURN_TYPE_SINT = 3
D3D10_RETURN_TYPE_UINT = 4
D3D10_RETURN_TYPE_FLOAT = 5
D3D10_RETURN_TYPE_MIXED = 6

D3D10_REGISTER_COMPONENT_UNKNOWN = 0
D3D10_REGISTER_COMPONENT_UINT32 = 1
D3D10_REGISTER_COMPONENT_SINT32 = 2
D3D10_REGISTER_COMPONENT_FLOAT32 = 3

D3D10_INCLUDE_LOCAL = 0
D3D10_INCLUDE_SYSTEM = 1

interface ID3D10Include,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Open,\
	  Close

struct D3D10SHADERDESC
       Version dd ?,?
       Creator dq ?
       Flags dd ?
       ConstantBuffers dd ?
       BoundResources dd ?
       InputParameters dd ?
       OutputParameters dd ?
       InstructionCount dd ?
       TempRegisterCount dd ?
       TempArrayCount dd ?
       DefCount dd ?
       DclCount dd ?
       TextureNormalInstructions dd ?
       TextureLoadInstructions dd ?
       TextureCompInstructions dd ?
       TextureBiasInstructions dd ?
       TextureGradientInstructions dd ?
       FloatInstructionCount dd ?
       IntInstructionCount dd ?
       UintInstructionCount dd ?
       StaticFlowControlCount dd ?
       DynamicFlowControlCount dd ?
       MacroInstructionCount dd ?
       ArrayInstructionCount dd ?
       CutInstructionCount dd ?
       EmitInstructionCount dd ?
       GSOutputTopology dd ?
       GSMaxOutputVertexCount dd ?
ends

struct D3D10SHADERBUFFERDESC
       Name dq ?
       Type dd ?
       Variables dd ?
       Size dd ?
       uFlags dd ?
ends

struct D3D10SHADERVARIABLEDESC
       Name dq ?
       StartOffset dd ?
       Size dd ?
       uFlags dd ?
       DefaultValue dq ?
ends

struct D3D10SHADERTYPEDESC
       Class dd ?
       Type dd ?
       Rows dd ?
       Columns dd ?
       Elements dd ?
       Members dd ?
       Offset dd ?
ends

struct D3D10SHADERINPUTBINDDESC
       Name dq ?
       Type dd ?
       BindPoint dd ?
       BindCount dd ?
       uFlags dd ?
       ReturnType dd ?
       Dimension dd ?
       NumSamples dd ?,?
ends

struct D3D10SIGNATUREPARAMETERDESC
       SemanticName dq ?
       SemanticIndex dd ?
       Register dd ?
       SystemValueType dd ?
       ComponentType dd ?
       Mask db ?
       ReadWriteMask db 7 dup(?)
ends

interface ID3D10ShaderReflectionType,\
	  GetDesc,\
	  GetMemberTypeByIndex,\
	  GetMemberTypeByName,\
	  GetMemberTypeName

interface ID3D10ShaderReflectionVariable,\
	  GetDesc,\
	  GetType

interface ID3D10ShaderReflectionConstantBuffer,\
	  GetDesc,\
	  GetVariableByIndex,\
	  GetVariableByName

interface ID3D10ShaderReflection,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDesc,\
	  GetConstantBufferByIndex,\
	  GetConstantBufferByName,\
	  GetResourceBindingDesc,\
	  GetInputParameterDesc,\
	  GetOutputParameterDesc

;Copyright (c) Microsoft Corporation.  All rights reserved.
;File:       D3D10Effect.h
;Content:    D3D10 Stateblock/Effect Types & APIs
D3D10_DST_SO_BUFFERS = 1
D3D10_DST_OM_RENDER_TARGETS = 2
D3D10_DST_OM_DEPTH_STENCIL_STATE = 3
D3D10_DST_OM_BLEND_STATE = 4
D3D10_DST_VS = 5
D3D10_DST_VS_SAMPLERS = 6
D3D10_DST_VS_SHADER_RESOURCES = 7
D3D10_DST_VS_CONSTANT_BUFFERS = 8
D3D10_DST_GS = 9
D3D10_DST_GS_SAMPLERS = 10
D3D10_DST_GS_SHADER_RESOURCES = 11
D3D10_DST_GS_CONSTANT_BUFFERS = 12
D3D10_DST_PS = 13
D3D10_DST_PS_SAMPLERS = 14
D3D10_DST_PS_SHADER_RESOURCES = 15
D3D10_DST_PS_CONSTANT_BUFFERS = 16
D3D10_DST_IA_VERTEX_BUFFERS = 17
D3D10_DST_IA_INDEX_BUFFER = 18
D3D10_DST_IA_INPUT_LAYOUT = 19
D3D10_DST_IA_PRIMITIVE_TOPOLOGY = 20
D3D10_DST_RS_VIEWPORTS = 21
D3D10_DST_RS_SCISSOR_RECTS = 22
D3D10_DST_RS_RASTERIZER_STATE = 23
D3D10_DST_PREDICATION = 24

struct D3D10STATEBLOCKMASK
       VS db ?
       VSSamplers db ?,?
       VSShaderResources db 16 dup(?)
       VSConstantBuffers db ?,?
       GS db ?
       GSSamplers db ?,?
       GSShaderResources db 16 dup(?)
       GSConstantBuffers db ?,?
       PS db ?
       PSSamplers db ?,?
       PSShaderResources db 16 dup(?)
       PSConstantBuffers db ?,?
       IAVertexBuffers db ?,?
       IAIndexBuffer db ?
       IAInputLayout db ?
       IAPrimitiveTopology db ?
       OMRenderTargets db ?
       OMDepthStencilState db ?
       OMBlendState db ?
       RSViewports db ?
       RSScissorRects db ?
       RSRasterizerState db ?
       SOBuffers db ?
       Predication db ?
ends

interface ID3D10StateBlock,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  Capture,\
	  Apply,\
	  ReleaseAllDeviceObjects,\
	  GetDevice

D3D10_EFFECT_COMPILE_CHILD_EFFECT = (1 shl 0)
D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS = (1 shl 1)
D3D10_EFFECT_SINGLE_THREADED = (1 shl 3)
D3D10_EFFECT_VARIABLE_POOLED = (1 shl 0)
D3D10_EFFECT_VARIABLE_ANNOTATION = (1 shl 1)
D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT = (1 shl 2)

struct D3D10EFFECTTYPEDESC
       TypeName dq ?
       Class dd ?
       Type dd ?
       Elements dd ?
       Members dd ?
       Rows dd ?
       Columns dd ?
       PackedSize dd ?
       UnpackedSize dd ?
       Stride dd ?,?
ends

interface ID3D10EffectType,\
	  IsValid,\
	  GetDesc,\
	  GetMemberTypeByIndex,\
	  GetMemberTypeByName,\
	  GetMemberTypeBySemantic,\
	  GetMemberName,\
	  GetMemberSemantic

struct D3D10EFFECTVARIABLEDESC
       Name dq ?
       Semantic dq ?
       Flags dd ?
       Annotations dd ?
       BufferOffset dd ?
       ExplicitBindPoint dd ?
ends

interface ID3D10EffectVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue

interface ID3D10EffectScalarVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetFloat,\
	  GetFloat,\
	  SetFloatArray,\
	  GetFloatArray,\
	  SetInt,\
	  GetInt,\
	  SetIntArray,\
	  GetIntArray,\
	  SetBool,\
	  GetBool,\
	  SetBoolArray,\
	  GetBoolArray

interface ID3D10EffectVectorVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetBoolVector,\
	  SetIntVector,\
	  SetFloatVector,\
	  GetBoolVector,\
	  GetIntVector,\
	  GetFloatVector,\
	  SetBoolVectorArray,\
	  SetIntVectorArray,\
	  SetFloatVectorArray,\
	  GetBoolVectorArray,\
	  GetIntVectorArray,\
	  GetFloatVectorArray

interface ID3D10EffectMatrixVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetMatrix,\
	  GetMatrix,\
	  SetMatrixArray,\
	  GetMatrixArray,\
	  SetMatrixTranspose,\
	  GetMatrixTranspose,\
	  SetMatrixTransposeArray,\
	  GetMatrixTransposeArray

interface ID3D10EffectStringVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  GetString,\
	  GetStringArray

interface ID3D10EffectShaderResourceVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetResource,\
	  GetResource,\
	  SetResourceArray,\
	  GetResourceArray

interface ID3D10EffectRenderTargetViewVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetRenderTarget,\
	  GetRenderTarget,\
	  SetRenderTargetArray,\
	  GetRenderTargetArray

interface ID3D10EffectDepthStencilViewVariable,\
	  IsValid,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetDepthStencil,\
	  GetDepthStencil,\
	  SetDepthStencilArray,\
	  GetDepthStencilArray

interface ID3D10EffectConstantBuffer,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  SetConstantBuffer,\
	  GetConstantBuffer,\
	  SetTextureBuffer,\
	  GetTextureBuffer

struct D3D10EFFECTSHADERDESC
       pInputSignature dq ?
       IsInline dd ?,?
       pBytecode dq ?
       BytecodeLength dd ?,?
       SODecl dq ?
       NumInputSignatureEntries dd ?
       NumOutputSignatureEntries dd ?
ends

interface ID3D10EffectShaderVariable,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  GetShaderDesc,\
	  GetVertexShader,\
	  GetGeometryShader,\
	  GetPixelShader,\
	  GetInputSignatureElementDesc,\
	  GetOutputSignatureElementDesc

interface ID3D10EffectBlendVariable,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  GetBlendState,\
	  GetBackingStore

interface ID3D10EffectDepthStencilVariable,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  GetDepthStencilState,\
	  GetBackingStore

interface ID3D10EffectRasterizerVariable,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  GetRasterizerState,\
	  GetBackingStore

interface ID3D10EffectSamplerVariable,\
	  GetType,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetMemberByIndex,\
	  GetMemberByName,\
	  GetMemberBySemantic,\
	  GetElement,\
	  GetParentConstantBuffer,\
	  AsScalar,\
	  AsVector,\
	  AsMatrix,\
	  AsString,\
	  AsShaderResource,\
	  AsRenderTargetView,\
	  AsDepthStencilView,\
	  AsConstantBuffer,\
	  AsShader,\
	  AsBlend,\
	  AsDepthStencil,\
	  AsRasterizer,\
	  AsSampler,\
	  SetRawValue,\
	  GetRawValue,\
	  GetSampler,\
	  GetBackingStore

struct D3D10PASSDESC
       Name dq ?
       Annotations dd ?,?
       pIAInputSignature dq ?
       IAInputSignatureSize dq ?
       StencilRef dd ?
       SampleMask dd ?
       BlendFactor dd 4 dup(?)
ends

struct D3D10PASSSHADERDESC
       pShaderVariable dq ?
       ShaderIndex dd ?,?
ends

interface ID3D10EffectPass,\
	  IsValid,\
	  GetDesc,\
	  GetVertexShaderDesc,\
	  GetGeometryShaderDesc,\
	  GetPixelShaderDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  Apply,\
	  ComputeStateBlockMask

struct D3D10TECHNIQUEDESC
       Name dq ?
       Passes dd ?
       Annotations dd ?
ends

interface ID3D10EffectTechnique,\
	  IsValid,\
	  GetDesc,\
	  GetAnnotationByIndex,\
	  GetAnnotationByName,\
	  GetPassByIndex,\
	  GetPassByName,\
	  ComputeStateBlockMask

struct D3D10EFFECTDESC
       IsChildEffect dd ?
       ConstantBuffers dd ?
       SharedConstantBuffers dd ?
       GlobalVariables dd ?
       SharedGlobalVariables dd ?
       Techniques dd ?
ends

interface ID3D10Effect,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  IsValid,\
	  IsPool,\
	  GetDevice,\
	  GetDesc,\
	  GetConstantBufferByIndex,\
	  GetConstantBufferByName,\
	  GetVariableByIndex,\
	  GetVariableByName,\
	  GetVariableBySemantic,\
	  GetTechniqueByIndex,\
	  GetTechniqueByName,\
	  Optimize,\
	  IsOptimized

interface ID3D10EffectPool,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  AsEffect

D3D10_FEATURE_LEVEL_10_0 = $a000
D3D10_FEATURE_LEVEL_10_1 = $a100

struct D3D10RENDERTARGETBLENDDESC1
       BlendEnable dd ?
       SrcBlend dd ?
       DestBlend dd ?
       BlendOp dd ?
       SrcBlendAlpha dd ?
       DestBlendAlpha dd ?
       BlendOpAlpha dd ?
       RenderTargetWriteMask db ?,?,?,?
ends

struct D3D10BLENDDESC1
       AlphaToCoverageEnable dd ?
       IndependentBlendEnable dd ?
       RenderTarget D3D10RENDERTARGETBLENDDESC1
		    db sizeof.D3D10RENDERTARGETBLENDDESC1*7 dup(?)
ends

;IID_ID3D10BlendState1 GUID $EDAD8D99,$8A35,$4d6d,<$85,$66,$2E,$A2,$76,$CD,$E1,$61>
interface ID3D10BlendState1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetDesc,\
	  GetDesc1
    
struct D3D10TEXCUBEARRAYSRV1
       MostDetailedMip dd ?
       MipLevels dd ?
       First2DArrayFace dd ?
       NumCubes dd ?
ends

D3D10_1_SRV_DIMENSION_UNKNOWN = 0
D3D10_1_SRV_DIMENSION_BUFFER = 1
D3D10_1_SRV_DIMENSION_TEXTURE1D = 2
D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY = 3
D3D10_1_SRV_DIMENSION_TEXTURE2D = 4
D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY = 5
D3D10_1_SRV_DIMENSION_TEXTURE2DMS = 6
D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY = 7
D3D10_1_SRV_DIMENSION_TEXTURE3D = 8
D3D10_1_SRV_DIMENSION_TEXTURECUBE = 9
D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY = 10

struct D3D10SHADERRESOURCEVIEWDESC1
       Format dd ?
       ViewDimension dd ?
       union
	   Buffer D3D10BUFFERSRV
	   Texture1D D3D10TEX1DSRV
	   Texture1DArray D3D10TEX1DARRAYSRV
	   Texture2D D3D10TEX2DSRV
	   Texture2DArray D3D10TEX2DARRAYSRV
	   Texture2DMS D3D10TEX2DMSSRV
	   Texture2DMSArray D3D10TEX2DMSARRAYSRV
	   Texture3D D3D10TEX3DSRV
	   TextureCube D3D10TEXCUBESRV
	   TextureCubeArray D3D10TEXCUBEARRAYSRV1
       ends
ends

;IID_ID3D10ShaderResourceView1 GUID $9B7E4C87,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
interface ID3D10ShaderResourceView1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDevice,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  GetResource,\
	  GetDesc,\
	  GetDesc1
    
D3D10_STANDARD_MULTISAMPLE_PATTERN = $ffffffff
D3D10_CENTER_MULTISAMPLE_PATTERN = $fffffffe

;IID_ID3D10Device1 GUID $9B7E4C8F,$342C,$4106,<$A1,$9F,$4F,$27,$04,$F6,$89,$F0>
interface ID3D10Device1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  VSSetConstantBuffers,\
	  PSSetShaderResources,\
	  PSSetShader,\
	  PSSetSamplers,\
	  VSSetShader,\
	  DrawIndexed,\
	  Draw,\
	  PSSetConstantBuffers,\
	  IASetInputLayout,\
	  IASetVertexBuffers,\
	  IASetIndexBuffer,\
	  DrawIndexedInstanced,\
	  DrawInstanced,\
	  GSSetConstantBuffers,\
	  GSSetShader,\
	  IASetPrimitiveTopology,\
	  VSSetShaderResources,\
	  VSSetSamplers,\
	  SetPredication,\
	  GSSetShaderResources,\
	  GSSetSamplers,\
	  OMSetRenderTargets,\
	  OMSetBlendState,\
	  OMSetDepthStencilState,\
	  SOSetTargets,\
	  DrawAuto,\
	  RSSetState,\
	  RSSetViewports,\
	  RSSetScissorRects,\
	  CopySubresourceRegion,\
	  CopyResource,\
	  UpdateSubresource,\
	  ClearRenderTargetView,\
	  ClearDepthStencilView,\
	  GenerateMips,\
	  ResolveSubresource,\
	  VSGetConstantBuffers,\
	  PSGetShaderResources,\
	  PSGetShader,\
	  PSGetSamplers,\
	  VSGetShader,\
	  PSGetConstantBuffers,\
	  IAGetInputLayout,\
	  IAGetVertexBuffers,\
	  IAGetIndexBuffer,\
	  GSGetConstantBuffers,\
	  GSGetShader,\
	  IAGetPrimitiveTopology,\
	  VSGetShaderResources,\
	  VSGetSamplers,\
	  GetPredication,\
	  GSGetShaderResources,\
	  GSGetSamplers,\
	  OMGetRenderTargets,\
	  OMGetBlendState,\
	  OMGetDepthStencilState,\
	  SOGetTargets,\
	  RSGetState,\
	  RSGetViewports,\
	  RSGetScissorRects,\
	  GetDeviceRemovedReason,\
	  SetExceptionMode,\
	  GetExceptionMode,\
	  GetPrivateData,\
	  SetPrivateData,\
	  SetPrivateDataInterface,\
	  ClearState,\
	  Flush,\
	  CreateBuffer,\
	  CreateTexture1D,\
	  CreateTexture2D,\
	  CreateTexture3D,\
	  CreateShaderResourceView,\
	  CreateRenderTargetView,\
	  CreateDepthStencilView,\
	  CreateInputLayout,\
	  CreateVertexShader,\
	  CreateGeometryShader,\
	  CreateGeometryShaderWithStreamOutput,\
	  CreatePixelShader,\
	  CreateBlendState,\
	  CreateDepthStencilState,\
	  CreateRasterizerState,\
	  CreateSamplerState,\
	  CreateQuery,\
	  CreatePredicate,\
	  CreateCounter,\
	  CheckFormatSupport,\
	  CheckMultisampleQualityLevels,\
	  CheckCounterInfo,\
	  CheckCounter,\
	  GetCreationFlags,\
	  OpenSharedResource,\
	  SetTextFilterSize,\
	  GetTextFilterSize,\
	  CreateShaderResourceView1,\
	  CreateBlendState1,\
	  GetFeatureLevel

D3D10_1_SDK_VERSION = $20

;Copyright (c) Microsoft Corporation.  All rights reserved.
;File:       D3D10_1Shader.h
;Content:    D3D10.1 Shader Types and APIs

D3D10_SHADER_DEBUG_REG_INPUT = 0
D3D10_SHADER_DEBUG_REG_OUTPUT = 1
D3D10_SHADER_DEBUG_REG_CBUFFER = 2
D3D10_SHADER_DEBUG_REG_TBUFFER = 3
D3D10_SHADER_DEBUG_REG_TEMP = 4
D3D10_SHADER_DEBUG_REG_TEMPARRAY = 5
D3D10_SHADER_DEBUG_REG_TEXTURE = 6
D3D10_SHADER_DEBUG_REG_SAMPLER = 7
D3D10_SHADER_DEBUG_REG_IMMEDIATECBUFFER = 8
D3D10_SHADER_DEBUG_REG_LITERAL = 9
D3D10_SHADER_DEBUG_REG_UNUSED = 10
D3D11_SHADER_DEBUG_REG_INTERFACE_POINTERS = 11

D3D10_SHADER_DEBUG_SCOPE_GLOBAL = 0
D3D10_SHADER_DEBUG_SCOPE_BLOCK = 1
D3D10_SHADER_DEBUG_SCOPE_FORLOOP = 2
D3D10_SHADER_DEBUG_SCOPE_STRUCT = 3
D3D10_SHADER_DEBUG_SCOPE_FUNC_PARAMS = 4
D3D10_SHADER_DEBUG_SCOPE_STATEBLOCK = 5
D3D10_SHADER_DEBUG_SCOPE_NAMESPACE = 6
D3D10_SHADER_DEBUG_SCOPE_ANNOTATION = 7

D3D10_SHADER_DEBUG_VAR_VARIABLE = 0
D3D10_SHADER_DEBUG_VAR_FUNCTION = 1

struct D3D10SHADERDEBUGTOKENINFO
       File dd ?
       Line dd ?
       Column dd ?
       TokenLength dd ?
       TokenId dd ?
ends

struct D3D10SHADERDEBUGVARINFO
       TokenId dd ?
       Type dd ?
       Register dd ?
       Component dd ?
       ScopeVar dd ?
       ScopeVarOffset dd ?
ends

struct D3D10SHADERDEBUGINPUTINFO
       Var dd ?
       InitialRegisterSet dd ?
       InitialBank dd ?
       InitialRegister dd ?
       InitialComponent dd ?
       InitialValue dd ?
ends

struct D3D10SHADERDEBUGSCOPEVARINFO
       TokenId dd ?
       VarType dd ?
       Class dd ?
       Rows dd ?
       Columns dd ?
       StructMemberScope dd ?
       uArrayIndices dd ?
       ArrayElements dd ?
       ArrayStrides dd ?
       uVariables dd ?
       uFirstVariable dd ?
ends

struct D3D10SHADERDEBUGSCOPEINFO
       ScopeType dd ?
       Name dd ?
       uNameLen dd ?
       uVariables dd ?
       VariableData dd ?
ends

struct D3D10SHADERDEBUGOUTPUTVAR
       Var dd ?
       uValueMin dd ?
       uValueMax dd ?
       iValueMin dd ?
       iValueMax dd ?
       fValueMin dd ?
       fValueMax dd ?
       bNaNPossible dd ?
       bInfPossible dd ?
ends

struct D3D10SHADERDEBUGOUTPUTREGINFO
       OutputRegisterSet dd ?
       OutputReg dd ?
       TempArrayReg dd ?
       OutputComponents dd ?,?,?,?
       OutputVars D3D10SHADERDEBUGOUTPUTVAR
		  db sizeof.D3D10SHADERDEBUGOUTPUTVAR*3 dup(?)
       IndexReg dd ?
       IndexComp dd ?
ends

struct D3D10SHADERDEBUGINSTINFO
       Id dd ?
       Opcode dd ?
       uOutputs dd ?
       pOutputs D3D10SHADERDEBUGOUTPUTREGINFO
		db sizeof.D3D10SHADERDEBUGOUTPUTREGINFO dup(?)
       TokenId dd ?
       NestingLevel dd ?
       Scopes dd ?
       ScopeInfo dd ?
       AccessedVars dd ?
       AccessedVarsInfo dd ?
ends

struct D3D10SHADERDEBUGFILEINFO
       FileName dd ?
       FileNameLen dd ?
       FileData dd ?
       FileLen dd ?
ends

struct D3D10SHADERDEBUGINFO
       Size dd ?
       Creator dd ?
       EntrypointName dd ?
       ShaderTarget dd ?
       CompileFlags dd ?
       Files dd ?
       FileInfo dd ?
       Instructions dd ?
       InstructionInfo dd ?
       Variables dd ?
       VariableInfo dd ?
       InputVariables dd ?
       InputVariableInfo dd ?
       Tokens dd ?
       TokenInfo dd ?
       Scopes dd ?
       ScopeInfo dd ?
       ScopeVariables dd ?
       ScopeVariableInfo dd ?
       UintOffset dd ?
       StringOffset dd ?
ends

;IID_ID3D10ShaderReflection1 GUID $c3457783,$a846,$47ce,<$95,$20,$ce,$a6,$f6,$6e,$74,$47>
interface ID3D10ShaderReflection1,\
	  QueryInterface,\
	  AddRef,\
	  Release,\
	  GetDesc,\
	  GetConstantBufferByIndex,\
	  GetConstantBufferByName,\
	  GetResourceBindingDesc,\
	  GetInputParameterDesc,\
	  GetOutputParameterDesc,\
	  GetVariableByName,\
	  GetResourceBindingDescByName,\
	  GetMovInstructionCount,\
	  GetMovcInstructionCount,\
	  GetConversionInstructionCount,\
	  GetBitwiseInstructionCount,\
	  GetGSInputPrimitive,\
	  IsLevel9Shader,\
	  IsSampleFrequencyShader

;IID_ID3D10BlendState1 GUID $EDAD8D99,$8A35,$4d6d,<$85,$66,$2E,$A2,$76,$CD,$E1,$61>
;IID_ID3D10ShaderResourceView1 GUID $9B7E4C87,$342C,$4106,<$A1,$9F,$4F,$27,4,$F6,$89,$F0>
;IID_ID3D10Device1 GUID $9B7E4C8F,$342C,$4106,<$A1,$9F,$4F,$27,4,$F6,$89,$F0>
